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"` ], );