Added unit tests

This commit is contained in:
DaanV2
2021-08-18 20:15:02 +02:00
parent dccbc643eb
commit 7dfdb0802c
12 changed files with 293 additions and 42 deletions

20
test/src/Utillity.test.ts Normal file
View File

@@ -0,0 +1,20 @@
import { expect } from "chai";
import { Files } from "./Utillity";
describe("files", () => {
it("Root", () => {
const temp = Files.RootFolder();
console.log(temp);
expect(temp.endsWith("lib"), "ended with lib").to.be.false;
expect(temp.endsWith("lib\\test"), "ended with lib\\test").to.be.false;
expect(temp.endsWith("lib/test"), "ended with lib/test").to.be.false;
});
it("Test", () => {
const temp = Files.TestFolder();
console.log(temp);
expect(temp.endsWith("lib"), "ended with lib").to.be.false;
});
});