mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
NotesService: rename getLastRevision
to getLatestRevision
This fixes an inconsistency with `RevisionsService` Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
89df171751
commit
b7cb3181c4
2 changed files with 4 additions and 4 deletions
|
@ -167,7 +167,7 @@ describe('Notes', () => {
|
|||
|
||||
it(`GET /notes/{note}/revisions/{revision-id}`, async () => {
|
||||
const note = await notesService.createNote('This is a test note.', 'test8');
|
||||
const revision = await notesService.getLastRevision(note);
|
||||
const revision = await notesService.getLatestRevision(note);
|
||||
const response = await request(app.getHttpServer())
|
||||
.get('/notes/test8/revisions/' + revision.id)
|
||||
.expect('Content-Type', /json/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue