This commit is contained in:
Asier Isayas
2025-12-17 11:32:55 -08:00
parent 2e8e02f75b
commit 31c9574df4
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -63,7 +63,7 @@ function createSafeRandomString(byteLength: number): string {
return crypto
.randomBytes(byteLength)
.toString("base64")
.replace(/[\/\\#]/g, "_");
.replace(/[\\#]/g, "_");
}
export const TestData: TestItem[] = createTestItems();