From 2a657ab9301abbe01e3f567ce184a7ad44b260b7 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 10 May 2021 16:17:43 -0700 Subject: [PATCH] feat: add tests for getEnvPaths --- test/unit/node/util.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/unit/node/util.test.ts diff --git a/test/unit/node/util.test.ts b/test/unit/node/util.test.ts new file mode 100644 index 00000000..e26add80 --- /dev/null +++ b/test/unit/node/util.test.ts @@ -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) + }) +})