Updating files
This commit is contained in:
@@ -23,7 +23,7 @@ describe("test incorrect files", function () {
|
|||||||
(succes) => {
|
(succes) => {
|
||||||
expect(succes.length, "Expected errors! but had none").to.greaterThan(0);
|
expect(succes.length, "Expected errors! but had none").to.greaterThan(0);
|
||||||
},
|
},
|
||||||
(fail) => {
|
() => {
|
||||||
Github.createError("No errors where found", { file: file });
|
Github.createError("No errors where found", { file: file });
|
||||||
expect.fail("Failed to validate");
|
expect.fail("Failed to validate");
|
||||||
}
|
}
|
||||||
@@ -32,7 +32,7 @@ describe("test incorrect files", function () {
|
|||||||
(success) => {
|
(success) => {
|
||||||
expect(success.length, "Expected schemas to be returned").to.greaterThan(0);
|
expect(success.length, "Expected schemas to be returned").to.greaterThan(0);
|
||||||
},
|
},
|
||||||
(fail) => {
|
() => {
|
||||||
Github.createError("Found no schema", { file: file });
|
Github.createError("Found no schema", { file: file });
|
||||||
expect.fail("failed on retrieving schemas");
|
expect.fail("failed on retrieving schemas");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export namespace Files {
|
|||||||
cwd = cwd.replace("\\", "/");
|
cwd = cwd.replace("\\", "/");
|
||||||
|
|
||||||
const options: FastGlob.Options = { onlyFiles: true, absolute: true, cwd: cwd };
|
const options: FastGlob.Options = { onlyFiles: true, absolute: true, cwd: cwd };
|
||||||
let entries = FastGlob.sync(["*.json", "**/*.json"], options);
|
const entries = FastGlob.sync(["*.json", "**/*.json"], options);
|
||||||
|
|
||||||
return entries;
|
return entries;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user