Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions api/tests/video-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
});

if (!trustedLogin.ok()) {
test.skip(true, "Trusted seed user not available");

Check warning on line 193 in api/tests/video-service.spec.ts

View workflow job for this annotation

GitHub Actions / integration

Unexpected use of the `.skip()` annotation
return;
}

Expand Down Expand Up @@ -360,14 +360,16 @@

expect(listResponse.ok()).toBeTruthy();
const listBody = await listResponse.json();
// Video should be PENDING (no rejection reason yet)
// Video should be PENDING with no rejection reason.
// Jackson non_null config omits null fields, so rejectionReason
// is absent rather than explicitly null.
const found = listBody.content.find(
(v: { id: string }) => v.id === video.id,
);
expect(found).toMatchObject({
status: "PENDING",
rejectionReason: null,
});
expect(found.rejectionReason).toBeUndefined();
}
// If 409, video already exists from a prior run — test is still valid:
// the schema test (rejectionReason field) was verified in a previous run
Expand Down
Loading