mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
chore: finishing unit tests for a couple of services (#13292)
This commit is contained in:
parent
f5e0cdedbc
commit
9d0f03808c
17 changed files with 386 additions and 8 deletions
server/src/services
|
@ -72,6 +72,13 @@ describe('AuthService', () => {
|
|||
expect(sut).toBeDefined();
|
||||
});
|
||||
|
||||
describe('onBootstrap', () => {
|
||||
it('should init the repo', () => {
|
||||
sut.onBootstrap();
|
||||
expect(oauthMock.init).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
describe('login', () => {
|
||||
it('should throw an error if password login is disabled', async () => {
|
||||
systemMock.get.mockResolvedValue(systemConfigStub.disabled);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue