Added unit tests
This commit is contained in:
20
test/src/Utillity.test.ts
Normal file
20
test/src/Utillity.test.ts
Normal 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;
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user