From c5ea83c405c9a2cf6814ce31b35fcf15c08f54a3 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Fri, 15 Jan 2021 14:46:38 +0100 Subject: [PATCH] Fix failing LdpHandlerWithoutAuth integration test --- test/integration/LdpHandlerWithoutAuth.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/LdpHandlerWithoutAuth.test.ts b/test/integration/LdpHandlerWithoutAuth.test.ts index 84754289d..f8cf0b109 100644 --- a/test/integration/LdpHandlerWithoutAuth.test.ts +++ b/test/integration/LdpHandlerWithoutAuth.test.ts @@ -214,8 +214,8 @@ describe.each(stores)('An LDP handler without auth using %s', (name, { storeUrn, response = await resourceHelper.getContainer(folderId); expect(response.statusCode).toBe(200); - expect(response._getBuffer().toString()).toContain(' .'); - expect(response._getBuffer().toString()).toContain(' .'); + expect(response._getData()).toContain(' .'); + expect(response._getData()).toContain(' .'); expect(response.getHeaders().link).toEqual( [ `<${LDP.Container}>; rel="type"`, `<${LDP.BasicContainer}>; rel="type"`, `<${LDP.Resource}>; rel="type"` ], );