chore: migrate oauth to repo (#13211)

This commit is contained in:
Daniel Dietzler
2024-10-05 22:37:33 +02:00
committed by GitHub
parent 9d9bf1c88d
commit a5e9adb593
8 changed files with 171 additions and 121 deletions
@@ -0,0 +1,11 @@
import { IOAuthRepository } from 'src/interfaces/oauth.interface';
import { Mocked } from 'vitest';
export const newOAuthRepositoryMock = (): Mocked<IOAuthRepository> => {
return {
init: vitest.fn(),
authorize: vitest.fn(),
getLogoutEndpoint: vitest.fn(),
getProfile: vitest.fn(),
};
};