Skip to content

Commit f35a34b

Browse files
Peer review comp tests
1 parent 578fd4f commit f35a34b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/component-tests/apiGateway-tests/update-letter-status.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ test.describe("API Gateway Tests to Verify Patch Status Endpoint", () => {
3131
await createTestData(SUPPLIERID, 2);
3232
letters = await getLettersBySupplier(SUPPLIERID, "PENDING", 2);
3333

34-
if (!letters || letters.length < 2) {
34+
if (letters.length < 2) {
3535
throw new Error(
36-
`Expected 2 PENDING letters for supplier ${SUPPLIERID}, got ${letters?.length ?? 0}.`,
36+
`Expected 2 PENDING letters for supplier ${SUPPLIERID}, got ${letters.length}.`,
3737
);
3838
}
3939
});

tests/helpers/generate-fetch-test-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export async function waitForLetterStatus(
104104
}),
105105
);
106106

107-
const letter = Item as SupplierApiLetters | undefined;
107+
const letter = Item as SupplierApiLetters;
108108

109109
if (letter && letter.status === status) {
110110
return letter;

0 commit comments

Comments
 (0)