diff --git a/test/sql/document.spec.ts b/test/sql/document.spec.ts index b32a1654c..5f0725ce9 100644 --- a/test/sql/document.spec.ts +++ b/test/sql/document.spec.ts @@ -128,7 +128,7 @@ test.describe.serial("Upload Item", () => { await context?.dispose(); }); - test("upload document", async ({}, testInfo) => { + test("upload document", async () => { // Create file to upload const TestDataJsonString: string = JSON.stringify(TestData, null, 2); writeFileSync(uploadDocumentFilePath, TestDataJsonString); @@ -150,7 +150,7 @@ test.describe.serial("Upload Item", () => { }); }); - test("upload same document twice", async ({}, testInfo) => { + test("upload same document twice", async () => { // Create file to upload const TestDataJsonString: string = JSON.stringify(TestData, null, 2); writeFileSync(uploadDocumentFilePath, TestDataJsonString); @@ -186,7 +186,7 @@ test.describe.serial("Upload Item", () => { ); }); - test("upload invalid json", async ({}, testInfo) => { + test("upload invalid json", async () => { // Create file to upload let TestDataJsonString: string = JSON.stringify(TestData, null, 2); // Remove the first '[' so that it becomes invalid json diff --git a/test/testData.ts b/test/testData.ts index 352b5cd94..d141df153 100644 --- a/test/testData.ts +++ b/test/testData.ts @@ -63,7 +63,7 @@ function createSafeRandomString(byteLength: number): string { return crypto .randomBytes(byteLength) .toString("base64") - .replace(/[\/\\#]/g, "_"); + .replace(/[\\#]/g, "_"); } export const TestData: TestItem[] = createTestItems();