auth-backend: import modules directly for mocking
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user