Skip to content

Commit 05929bf

Browse files
committed
add id to programmatic upload
1 parent b17eff0 commit 05929bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

client/e2e/fixtures/api.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class Api {
7777
const payload = [];
7878
let row = 2;
7979
for (const c of codes) {
80-
payload.push({ ...c, row });
80+
payload.push({ id: crypto.randomUUID(), ...c, row });
8181
row++;
8282
}
8383
const uploadCsvReq = await this.request.post(
@@ -88,6 +88,8 @@ export class Api {
8888
},
8989
}
9090
);
91+
console.log(await uploadCsvReq.text());
92+
9193
expect(uploadCsvReq.ok()).toBeTruthy();
9294
const json = await uploadCsvReq.json();
9395
expect(json).toEqual(

0 commit comments

Comments
 (0)