mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: oauthlink cleanup mock
This commit is contained in:
@@ -20,6 +20,7 @@ describe('SessionService', () => {
|
|||||||
describe('handleCleanup', () => {
|
describe('handleCleanup', () => {
|
||||||
it('should clean sessions', async () => {
|
it('should clean sessions', async () => {
|
||||||
mocks.session.cleanup.mockResolvedValue([]);
|
mocks.session.cleanup.mockResolvedValue([]);
|
||||||
|
mocks.oauthLinkToken.cleanup.mockResolvedValue(0);
|
||||||
await expect(sut.handleCleanup()).resolves.toEqual(JobStatus.Success);
|
await expect(sut.handleCleanup()).resolves.toEqual(JobStatus.Success);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user