mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
NotesService: Rename getCurrentContent to getNoteContentByNote
The new name should better explain what this functions does. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
1df4039b79
commit
aa97a87316
3 changed files with 16 additions and 7 deletions
|
@ -74,7 +74,7 @@ describe('Notes', () => {
|
|||
.expect(201);
|
||||
expect(response.body.metadata?.id).toBeDefined();
|
||||
expect(
|
||||
await notesService.getCurrentContent(
|
||||
await notesService.getNoteContentByNote(
|
||||
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.getCurrentContent(
|
||||
await notesService.getNoteContentByNote(
|
||||
await notesService.getNoteByIdOrAlias(response.body.metadata?.id),
|
||||
),
|
||||
).toEqual(content);
|
||||
|
@ -141,7 +141,7 @@ describe('Notes', () => {
|
|||
.send(changedContent)
|
||||
.expect(200);
|
||||
await expect(
|
||||
await notesService.getCurrentContent(
|
||||
await notesService.getNoteContentByNote(
|
||||
await notesService.getNoteByIdOrAlias('test4'),
|
||||
),
|
||||
).toEqual(changedContent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue