mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 16:40:58 -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,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);
|
||||||
|
|
Loading…
Reference in a new issue