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