mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-05 17:14:40 -04:00
refactor(test): fix linting errors
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
c26bdf51d0
commit
eca22f5623
9 changed files with 54 additions and 46 deletions
|
@ -70,11 +70,13 @@ describe('SessionService', () => {
|
|||
});
|
||||
|
||||
it('creates a new TypeormStore on create', () => {
|
||||
expect(typeormStoreConstructorMock).toBeCalledWith({
|
||||
expect(typeormStoreConstructorMock).toHaveBeenCalledWith({
|
||||
cleanupLimit: 2,
|
||||
limitSubquery: true,
|
||||
});
|
||||
expect(mockedTypeormStore.connect).toBeCalledWith(mockedSessionRepository);
|
||||
expect(mockedTypeormStore.connect).toHaveBeenCalledWith(
|
||||
mockedSessionRepository,
|
||||
);
|
||||
expect(sessionService.getTypeormStore()).toBe(mockedTypeormStore);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue