From a61127dbd6e206ae2a45b7708c74722186ef08d4 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Tue, 22 Sep 2020 21:46:32 +0200 Subject: [PATCH] Note E2E tests: Use `response.body` to get the note content Signed-off-by: David Mehren --- test/public-api/notes.e2e-spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/public-api/notes.e2e-spec.ts b/test/public-api/notes.e2e-spec.ts index fd8d2700f..a68349be1 100644 --- a/test/public-api/notes.e2e-spec.ts +++ b/test/public-api/notes.e2e-spec.ts @@ -136,7 +136,7 @@ describe('Notes', () => { const response = await request(app.getHttpServer()) .get('/notes/test9/content') .expect(200); - expect(response.body).toEqual('This is a test note.'); + expect(response.text).toEqual('This is a test note.'); }); afterAll(async () => {