mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Note E2E tests: Use response.body
to get the note content
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
3c711e8cb8
commit
a61127dbd6
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ describe('Notes', () => {
|
||||||
const response = await request(app.getHttpServer())
|
const response = await request(app.getHttpServer())
|
||||||
.get('/notes/test9/content')
|
.get('/notes/test9/content')
|
||||||
.expect(200);
|
.expect(200);
|
||||||
expect(response.body).toEqual('This is a test note.');
|
expect(response.text).toEqual('This is a test note.');
|
||||||
});
|
});
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue