Skip to content

Commit

Permalink
fix jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Kabo committed May 17, 2024
1 parent e8abc37 commit c3a1b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/server/lib/__tests__/headers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jest.mock('@/server/lib/middleware/login', () => ({
jest.mock('@/server/lib/IDAPIFetch');
jest.mock('@/server/lib/okta/api/authentication');
jest.mock('@okta/jwt-verifier');
jest.mock('@/server/lib/idapi/newsletters');
jest.mock('@/server/lib/newsletters');

describe('Content Security Policy headers', () => {
test.each(ValidRoutePathsArray)(
Expand Down
6 changes: 3 additions & 3 deletions src/server/routes/welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { trackMetric } from '@/server/lib/trackMetric';
import { OktaError } from '@/server/models/okta/Error';
import { GenericErrors } from '@/shared/model/Errors';
import { getConfiguration } from '@/server/lib/getConfiguration';
import { setEncryptedStateCookieForOktaRegistration } from './register';
import { setEncryptedStateCookieForOktaRegistration } from '@/server/routes/register';
import { mergeRequestState } from '@/server/lib/requestState';
import { loginMiddlewareOAuth } from '@/server/lib/middleware/login';
import { CONSENTS_DATA_PAGE } from '@/shared/model/Consent';
Expand All @@ -39,11 +39,11 @@ import { getAppName, isAppPrefix } from '@/shared/lib/appNameUtils';
import {
updateRegistrationLocationViaIDAPI,
updateRegistrationLocationViaOkta,
} from '../lib/updateRegistrationLocation';
} from '@/server/lib/updateRegistrationLocation';
import {
NewsletterMap,
getUserNewsletterSubscriptions,
} from '../lib/newsletters';
} from '@/server/lib/newsletters';
import { getNextWelcomeFlowPage } from '@/server/lib/welcome';
import { newslettersSubscriptionsFromFormBody } from '@/shared/lib/newsletter';
import { bodyFormFieldsToRegistrationConsents } from '@/server/lib/registrationConsents';
Expand Down

0 comments on commit c3a1b21

Please sign in to comment.