mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 10:16:32 -05:00
Note E2E tests: Use the correct revision-id when checking GET /notes/{note}/revisions/{revision-id}
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
6e4893d179
commit
c5842d69e1
1 changed files with 3 additions and 2 deletions
|
@ -122,9 +122,10 @@ describe('Notes', () => {
|
|||
});
|
||||
|
||||
it(`GET /notes/{note}/revisions/{revision-id}`, async () => {
|
||||
await notesService.createNote('This is a test note.', 'test8');
|
||||
const note = await notesService.createNote('This is a test note.', 'test8');
|
||||
const revision = await notesService.getLastRevision(note);
|
||||
const response = await request(app.getHttpServer())
|
||||
.get('/notes/test8/revisions/1')
|
||||
.get('/notes/test8/revisions/' + revision.id)
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(200);
|
||||
expect(response.body.content).toEqual('This is a test note.');
|
||||
|
|
Loading…
Reference in a new issue