mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
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:
parent
1c22a425bd
commit
1f19a6fac4
1 changed files with 10 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue