refactor(test): fix linting errors

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2022-08-29 02:43:29 +02:00
parent c26bdf51d0
commit eca22f5623
9 changed files with 54 additions and 46 deletions

View file

@ -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);
});