From 432af8743f45ba32fff2a32ecdff8d6639b497e6 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 8 Jun 2021 10:45:54 +0200 Subject: [PATCH] auth-backend: import modules directly for mocking Signed-off-by: Patrik Oldsberg --- plugins/auth-backend/src/providers/github/provider.test.ts | 2 +- plugins/auth-backend/src/providers/gitlab/provider.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/auth-backend/src/providers/github/provider.test.ts b/plugins/auth-backend/src/providers/github/provider.test.ts index 6394ed9f2a..23d888789a 100644 --- a/plugins/auth-backend/src/providers/github/provider.test.ts +++ b/plugins/auth-backend/src/providers/github/provider.test.ts @@ -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( diff --git a/plugins/auth-backend/src/providers/gitlab/provider.test.ts b/plugins/auth-backend/src/providers/gitlab/provider.test.ts index b57d846f23..82588250cf 100644 --- a/plugins/auth-backend/src/providers/gitlab/provider.test.ts +++ b/plugins/auth-backend/src/providers/gitlab/provider.test.ts @@ -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(