From 8a09c16e0b2476cf1675839756f49f5e2b5c1cda Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 12 Oct 2025 19:26:13 +0200 Subject: [PATCH] fix: HTTP-errors are communicated via the field `status` --- pacts | 2 +- src/app/chatroom/chatroom.service.pact.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pacts b/pacts index 59604f22..a0e97a51 160000 --- a/pacts +++ b/pacts @@ -1 +1 @@ -Subproject commit 59604f22f29df6e511cd48850af7d9b73b5f7309 +Subproject commit a0e97a512e5e56f69035853d1510ae5efdde4d64 diff --git a/src/app/chatroom/chatroom.service.pact.spec.ts b/src/app/chatroom/chatroom.service.pact.spec.ts index 4e663a7e..13c8ba6b 100644 --- a/src/app/chatroom/chatroom.service.pact.spec.ts +++ b/src/app/chatroom/chatroom.service.pact.spec.ts @@ -75,7 +75,7 @@ describe('Pact between the ChatroomService and the backend', () => { }) .willRespondWith(404, (builder) => { builder.headers({ 'Content-Type': 'application/problem+json'}) - builder.jsonBody({ error: Matchers.like("404 not found") }) + builder.jsonBody({ status: 404 }) }) .executeTest(async (mockserver) => { await TestBed.configureTestingModule({ -- 2.39.5