From: Kai Moritz Date: Sun, 12 Oct 2025 17:24:57 +0000 (+0200) Subject: fix: The backend comunnicates errors as `application/problem+json` X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=81910d9c22af13d7ee60a6b46a0e51d97dbd1fe8;p=demos%2Fkafka%2Fchat fix: The backend comunnicates errors as `application/problem+json` --- diff --git a/pacts b/pacts index d7ba11ea..59604f22 160000 --- a/pacts +++ b/pacts @@ -1 +1 @@ -Subproject commit d7ba11ea3b6c4eb24bf8d89a910ffbc90d26b441 +Subproject commit 59604f22f29df6e511cd48850af7d9b73b5f7309 diff --git a/src/app/chatroom/chatroom.service.pact.spec.ts b/src/app/chatroom/chatroom.service.pact.spec.ts index b932b498..4e663a7e 100644 --- a/src/app/chatroom/chatroom.service.pact.spec.ts +++ b/src/app/chatroom/chatroom.service.pact.spec.ts @@ -74,6 +74,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") }) }) .executeTest(async (mockserver) => {