mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
Fix various ESLint errors in E2E tests
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
21403ba606
commit
f20c2f06e0
3 changed files with 21 additions and 6 deletions
|
@ -4,6 +4,11 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/* eslint-disable
|
||||
@typescript-eslint/no-unsafe-assignment,
|
||||
@typescript-eslint/no-unsafe-member-access
|
||||
*/
|
||||
|
||||
import { INestApplication } from '@nestjs/common';
|
||||
import { Test } from '@nestjs/testing';
|
||||
import * as request from 'supertest';
|
||||
|
@ -94,7 +99,7 @@ describe('Notes', () => {
|
|||
.expect(200);
|
||||
const history = <HistoryEntryDto[]>response.body;
|
||||
for (const historyEntry of history) {
|
||||
if ((<HistoryEntryDto>historyEntry).identifier === 'testGetHistory') {
|
||||
if (historyEntry.identifier === 'testGetHistory') {
|
||||
expect(historyEntry).toEqual(createdHistoryEntry);
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +121,7 @@ describe('Notes', () => {
|
|||
historyEntry = null;
|
||||
for (const e of history) {
|
||||
if (e.note.alias === noteName) {
|
||||
historyEntry = await historyService.toHistoryEntryDto(e);
|
||||
historyEntry = historyService.toHistoryEntryDto(e);
|
||||
}
|
||||
}
|
||||
expect(historyEntry.pinStatus).toEqual(true);
|
||||
|
@ -133,7 +138,7 @@ describe('Notes', () => {
|
|||
const history = await historyService.getEntriesByUser(user);
|
||||
let historyEntry: HistoryEntry = null;
|
||||
for (const e of history) {
|
||||
if ((<HistoryEntry>e).note.alias === noteName) {
|
||||
if (e.note.alias === noteName) {
|
||||
historyEntry = e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue