From d0d16248f2e0a84ee565e2b6919017a3d916ad63 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Wed, 18 Aug 2021 21:14:56 +0200 Subject: [PATCH] Updated --- src/index.ts | 7 +++++++ test/src/Utillity.test.ts | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/src/index.ts b/src/index.ts index e69de29b..b9df1cec 100644 --- a/src/index.ts +++ b/src/index.ts @@ -0,0 +1,7 @@ +import path = require("path"); + +export namespace DummyFiles { + export function TestFolder(): string { + return path.join(__dirname, "..", "..", "test"); + } +} diff --git a/test/src/Utillity.test.ts b/test/src/Utillity.test.ts index e149a780..97b79e86 100644 --- a/test/src/Utillity.test.ts +++ b/test/src/Utillity.test.ts @@ -1,4 +1,5 @@ import { expect } from "chai"; +import { DummyFiles } from "../../src"; import { Files } from "./Utillity"; describe("Files", () => { @@ -17,4 +18,8 @@ describe("Files", () => { expect(temp.endsWith("lib"), "ended with lib").to.be.false; }); + + it("Random", () => { + expect(Files.TestFolder()).to.equal(DummyFiles.TestFolder()); + }); });