Skip to content

Commit a74b119

Browse files
.
1 parent 096bdd2 commit a74b119

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

tests/component-tests/apiGateway-tests/get-letter-pdf.spec.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,9 @@ test.describe("API Gateway Tests to Verify Get Letter PDF Endpoint", () => {
3333
},
3434
);
3535

36-
const responseBody = await response.json();
37-
3836
expect(response.status()).toBe(200);
39-
expect(responseBody).toMatchObject({
40-
data: {
41-
attributes: {
42-
status: "PENDING",
43-
specificationId: letter.specificationId,
44-
groupId: letter.groupId,
45-
},
46-
id: letter.id,
47-
type: "Letter",
48-
},
49-
});
37+
const responseBody = await response.text();
38+
expect(responseBody).toContain("PDF");
5039
});
5140

5241
test(`Get /letters/{id}/data returns 404 if no resource is found for id`, async ({

0 commit comments

Comments
 (0)