From 5375762bd02018ec5ec19ee376cbd0adb786050c Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Sun, 18 Aug 2024 17:55:00 +0200 Subject: [PATCH] Updating files --- test/src/files/incorrect.test.ts | 4 ++-- test/src/utillity.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/src/files/incorrect.test.ts b/test/src/files/incorrect.test.ts index 18614a2e..c31053ce 100644 --- a/test/src/files/incorrect.test.ts +++ b/test/src/files/incorrect.test.ts @@ -23,7 +23,7 @@ describe("test incorrect files", function () { (succes) => { expect(succes.length, "Expected errors! but had none").to.greaterThan(0); }, - (fail) => { + () => { Github.createError("No errors where found", { file: file }); expect.fail("Failed to validate"); } @@ -32,7 +32,7 @@ describe("test incorrect files", function () { (success) => { expect(success.length, "Expected schemas to be returned").to.greaterThan(0); }, - (fail) => { + () => { Github.createError("Found no schema", { file: file }); expect.fail("failed on retrieving schemas"); } diff --git a/test/src/utillity.ts b/test/src/utillity.ts index 9c950386..78a0f594 100644 --- a/test/src/utillity.ts +++ b/test/src/utillity.ts @@ -28,7 +28,7 @@ export namespace Files { cwd = cwd.replace("\\", "/"); 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; }