From ed1f9f19a70ae8a4b418ebde0b34e87ff8207c0d Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 8 May 2024 16:12:24 +0100 Subject: [PATCH] Updating test case to cover this scenario properly. --- packages/server/src/integrations/tests/rest.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/integrations/tests/rest.spec.ts b/packages/server/src/integrations/tests/rest.spec.ts index 9877a826ec..7273a2d178 100644 --- a/packages/server/src/integrations/tests/rest.spec.ts +++ b/packages/server/src/integrations/tests/rest.spec.ts @@ -245,13 +245,13 @@ describe("REST Integration", () => { expect(output.extra.headers["content-type"]).toEqual("application/xml") }) - test.each(contentTypes)( + test.each([...contentTypes, undefined])( "should not throw an error on 204 no content", async contentType => { const input = buildInput(undefined, null, contentType, 204) const output = await config.integration.parseResponse(input) expect(output.data).toEqual([]) - expect(output.extra.raw).toEqual([]) + expect(output.extra.raw).toEqual("") expect(output.info.code).toEqual(204) expect(output.extra.headers["content-type"]).toEqual(contentType) }