auth-backend: import modules directly for mocking

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-08 10:45:54 +02:00
parent 9cd3c533c6
commit 432af8743f
2 changed files with 2 additions and 2 deletions
@@ -16,7 +16,7 @@
import { Profile as PassportProfile } from 'passport';
import { GithubAuthProvider } from './provider';
import * as helpers from '../../lib/passport';
import * as helpers from '../../lib/passport/PassportStrategyHelper';
import { OAuthResult } from '../../lib/oauth';
const mockFrameHandler = (jest.spyOn(
@@ -15,7 +15,7 @@
*/
import { GitlabAuthProvider } from './provider';
import * as helpers from '../../lib/passport';
import * as helpers from '../../lib/passport/PassportStrategyHelper';
import { OAuthResult } from '../../lib/oauth';
const mockFrameHandler = (jest.spyOn(