Note E2E tests: Use response.body to get the note content

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-09-22 21:46:32 +02:00
parent 3c711e8cb8
commit a61127dbd6
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -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 () => {