mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Format with Prettier 2.3
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
800f5a4dc3
commit
e4317725cd
9 changed files with 94 additions and 88 deletions
|
@ -122,18 +122,15 @@ describe('Me', () => {
|
|||
it('works with an existing note', async () => {
|
||||
const noteName = 'testGetNoteHistory2';
|
||||
const note = await notesService.createNote('', noteName);
|
||||
const createdHistoryEntry = await historyService.createOrUpdateHistoryEntry(
|
||||
note,
|
||||
user,
|
||||
);
|
||||
const createdHistoryEntry =
|
||||
await historyService.createOrUpdateHistoryEntry(note, user);
|
||||
const response = await request(app.getHttpServer())
|
||||
.get(`/me/history/${noteName}`)
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(200);
|
||||
const historyEntry = <HistoryEntryDto>response.body;
|
||||
const historyEntryDto = historyService.toHistoryEntryDto(
|
||||
createdHistoryEntry,
|
||||
);
|
||||
const historyEntryDto =
|
||||
historyService.toHistoryEntryDto(createdHistoryEntry);
|
||||
expect(historyEntry.identifier).toEqual(historyEntryDto.identifier);
|
||||
expect(historyEntry.title).toEqual(historyEntryDto.title);
|
||||
expect(historyEntry.tags).toEqual(historyEntryDto.tags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue