feat: add tests for getEnvPaths

This commit is contained in:
Joe Previte 2021-05-10 16:17:43 -07:00
parent a57ee69822
commit 2a657ab930
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
import { getEnvPaths } from "../../../src/node/util"
describe("getEnvPaths", () => {
it("should return an object with the data, config and runtime path", () => {
const actualPaths = getEnvPaths()
expect(actualPaths.hasOwnProperty("data")).toBe(true)
expect(actualPaths.hasOwnProperty("config")).toBe(true)
expect(actualPaths.hasOwnProperty("runtime")).toBe(true)
})
})