mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-26 22:04:14 +00: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>({
|
const mockedManager = Mock.of<EntityManager>({
|
||||||
createQueryBuilder: jest.fn().mockImplementation(() => createQueryBuilderForEntityManager),
|
createQueryBuilder: jest
|
||||||
remove: jest.fn().mockImplementationOnce(async (entry: HistoryEntry) => {
|
.fn()
|
||||||
expect(await (await entry.note).aliases).toHaveLength(1);
|
.mockImplementation(() => createQueryBuilderForEntityManager),
|
||||||
expect((await (await entry.note).aliases)[0].name).toEqual(alias);
|
remove: jest
|
||||||
expect(entry.pinStatus).toEqual(false);
|
.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) => {
|
save: jest.fn().mockImplementationOnce(async (entry: HistoryEntry) => {
|
||||||
expect((await entry.note).aliases).toEqual(
|
expect((await entry.note).aliases).toEqual(
|
||||||
(await newlyCreatedHistoryEntry.note).aliases,
|
(await newlyCreatedHistoryEntry.note).aliases,
|
||||||
|
|
Loading…
Reference in a new issue