mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 19:53:59 -05:00
E2E Tests: Fix ESLint errors
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
30712abe31
commit
b518583fd2
2 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ describe('History', () => {
|
|||
const entry = await historyService.createOrUpdateHistoryEntry(note2, user);
|
||||
expect(entry.pinStatus).toBeFalsy();
|
||||
await request(app.getHttpServer())
|
||||
.put(`/me/history/${entry.note.alias}`)
|
||||
.put(`/me/history/${entry.note.alias || 'undefined'}`)
|
||||
.send({ pinStatus: true })
|
||||
.expect(200);
|
||||
const userEntries = await historyService.getEntriesByUser(user);
|
||||
|
@ -199,7 +199,7 @@ describe('History', () => {
|
|||
const entry2 = await historyService.createOrUpdateHistoryEntry(note, user);
|
||||
const entryDto = historyService.toHistoryEntryDto(entry2);
|
||||
await request(app.getHttpServer())
|
||||
.delete(`/me/history/${entry.note.alias}`)
|
||||
.delete(`/me/history/${entry.note.alias || 'undefined'}`)
|
||||
.expect(200);
|
||||
const userEntries = await historyService.getEntriesByUser(user);
|
||||
expect(userEntries.length).toEqual(1);
|
||||
|
|
|
@ -134,7 +134,7 @@ describe('Media', () => {
|
|||
'hardcoded',
|
||||
'test_upload_media',
|
||||
);
|
||||
const filename = url.split('/').pop();
|
||||
const filename = url.split('/').pop() || '';
|
||||
await request(app.getHttpServer())
|
||||
.delete('/media/' + filename)
|
||||
.expect(204);
|
||||
|
|
Loading…
Reference in a new issue