mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Rename getNoteContentByNote to getNoteContent
Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
8ec756afb4
commit
8b75867664
4 changed files with 8 additions and 8 deletions
|
@ -74,7 +74,7 @@ describe('Notes', () => {
|
|||
.expect(201);
|
||||
expect(response.body.metadata?.id).toBeDefined();
|
||||
expect(
|
||||
await notesService.getNoteContentByNote(
|
||||
await notesService.getNoteContent(
|
||||
await notesService.getNoteByIdOrAlias(response.body.metadata.id),
|
||||
),
|
||||
).toEqual(content);
|
||||
|
@ -109,7 +109,7 @@ describe('Notes', () => {
|
|||
.expect(201);
|
||||
expect(response.body.metadata?.id).toBeDefined();
|
||||
return expect(
|
||||
await notesService.getNoteContentByNote(
|
||||
await notesService.getNoteContent(
|
||||
await notesService.getNoteByIdOrAlias(response.body.metadata?.id),
|
||||
),
|
||||
).toEqual(content);
|
||||
|
@ -150,7 +150,7 @@ describe('Notes', () => {
|
|||
.send(changedContent)
|
||||
.expect(200);
|
||||
await expect(
|
||||
await notesService.getNoteContentByNote(
|
||||
await notesService.getNoteContent(
|
||||
await notesService.getNoteByIdOrAlias('test4'),
|
||||
),
|
||||
).toEqual(changedContent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue