Fix unit test

This commit is contained in:
Rene Pfeuffer
2019-09-12 11:39:04 +02:00
parent 7807f5d49d
commit 17125d9c33

View File

@@ -106,13 +106,13 @@ describe("test path validation", () => {
const invalid = ["//", "some//path", "end//"];
for (let path of invalid) {
it(`should return false for '${path}'`, () => {
expect(validator.isValidPath(path)).toBe(false);
expect(validator.isPathValid(path)).toBe(false);
});
}
const valid = ["", "/", "dir", "some/path", "end/"];
for (let path of valid) {
it(`should return true for '${path}'`, () => {
expect(validator.isValidPath(path)).toBe(true);
expect(validator.isPathValid(path)).toBe(true);
});
}
});