Updating files

This commit is contained in:
DaanV2
2024-08-18 17:55:00 +02:00
parent 668e069e3c
commit 5375762bd0
2 changed files with 3 additions and 3 deletions

View File

@@ -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");
} }

View File

@@ -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;
} }