lint: fix error in new test

This was probably introduced because the PR was open so long

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2024-04-18 21:48:14 +02:00
parent 1c22a425bd
commit 1f19a6fac4

View file

@ -400,8 +400,12 @@ describe('HistoryService', () => {
}; };
const mockedManager = Mock.of<EntityManager>({ const mockedManager = Mock.of<EntityManager>({
createQueryBuilder: jest.fn().mockImplementation(() => createQueryBuilderForEntityManager), createQueryBuilder: jest
remove: jest.fn().mockImplementationOnce(async (entry: HistoryEntry) => { .fn()
.mockImplementation(() => createQueryBuilderForEntityManager),
remove: jest
.fn()
.mockImplementationOnce(async (entry: HistoryEntry) => {
expect(await (await entry.note).aliases).toHaveLength(1); expect(await (await entry.note).aliases).toHaveLength(1);
expect((await (await entry.note).aliases)[0].name).toEqual(alias); expect((await (await entry.note).aliases)[0].name).toEqual(alias);
expect(entry.pinStatus).toEqual(false); expect(entry.pinStatus).toEqual(false);