mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-02 11:25:08 -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);
|
const entry = await historyService.createOrUpdateHistoryEntry(note2, user);
|
||||||
expect(entry.pinStatus).toBeFalsy();
|
expect(entry.pinStatus).toBeFalsy();
|
||||||
await request(app.getHttpServer())
|
await request(app.getHttpServer())
|
||||||
.put(`/me/history/${entry.note.alias}`)
|
.put(`/me/history/${entry.note.alias || 'undefined'}`)
|
||||||
.send({ pinStatus: true })
|
.send({ pinStatus: true })
|
||||||
.expect(200);
|
.expect(200);
|
||||||
const userEntries = await historyService.getEntriesByUser(user);
|
const userEntries = await historyService.getEntriesByUser(user);
|
||||||
|
@ -199,7 +199,7 @@ describe('History', () => {
|
||||||
const entry2 = await historyService.createOrUpdateHistoryEntry(note, user);
|
const entry2 = await historyService.createOrUpdateHistoryEntry(note, user);
|
||||||
const entryDto = historyService.toHistoryEntryDto(entry2);
|
const entryDto = historyService.toHistoryEntryDto(entry2);
|
||||||
await request(app.getHttpServer())
|
await request(app.getHttpServer())
|
||||||
.delete(`/me/history/${entry.note.alias}`)
|
.delete(`/me/history/${entry.note.alias || 'undefined'}`)
|
||||||
.expect(200);
|
.expect(200);
|
||||||
const userEntries = await historyService.getEntriesByUser(user);
|
const userEntries = await historyService.getEntriesByUser(user);
|
||||||
expect(userEntries.length).toEqual(1);
|
expect(userEntries.length).toEqual(1);
|
||||||
|
|
|
@ -134,7 +134,7 @@ describe('Media', () => {
|
||||||
'hardcoded',
|
'hardcoded',
|
||||||
'test_upload_media',
|
'test_upload_media',
|
||||||
);
|
);
|
||||||
const filename = url.split('/').pop();
|
const filename = url.split('/').pop() || '';
|
||||||
await request(app.getHttpServer())
|
await request(app.getHttpServer())
|
||||||
.delete('/media/' + filename)
|
.delete('/media/' + filename)
|
||||||
.expect(204);
|
.expect(204);
|
||||||
|
|
Loading…
Reference in a new issue