mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-22 20:11:38 +00:00
test: use correct note content
The `works with an existing note` test was refactored to use testSetup notes, but didn't use the correct content to compare to. It's unclear why this test is only failing now. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
382e70bf7b
commit
81531b6559
1 changed files with 2 additions and 2 deletions
|
@ -58,13 +58,13 @@ describe('Notes', () => {
|
|||
|
||||
describe('GET /notes/{note}', () => {
|
||||
it('works with an existing note', async () => {
|
||||
// check if we can succefully get a note that exists
|
||||
// check if we can successfully get a note that exists
|
||||
const response = await request(testSetup.app.getHttpServer())
|
||||
.get('/api/v2/notes/testAlias1')
|
||||
.set('Authorization', `Bearer ${testSetup.authTokens[0].secret}`)
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(200);
|
||||
expect(response.body.content).toEqual(content);
|
||||
expect(response.body.content).toEqual('Test Note 1');
|
||||
});
|
||||
it('fails with an non-existing note', async () => {
|
||||
// check if a missing note correctly returns 404
|
||||
|
|
Loading…
Reference in a new issue