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:
David Mehren 2023-03-25 12:04:06 +01:00
parent 382e70bf7b
commit 81531b6559

View file

@ -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