Skip to content

Commit c403d6a

Browse files
committed
fix: enrollment age check test
1 parent 30f3985 commit c403d6a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/server/verification/processor/__tests__/EnrollmentProcessor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import createMockingHelper from '../../api/__tests__/__util__'
1111
import { createTaskSubject, DisposeAt, DISPOSE_ENROLLMENTS_TASK, forEnrollment } from '../../cron/taskUtil'
1212
import { noopAsync } from '../../../utils/async'
1313

14+
import GoodIDUtils from '../../../goodid/utils'
15+
// make sure age test fails
16+
GoodIDUtils.ageGenderCheck = jest.fn().mockResolvedValue({ age: { min: 15 } })
17+
1418
let helper
1519
let zoomServiceMock
1620

src/server/verification/processor/provider/__tests__/ZoomProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import getZoomProvider from '../ZoomProvider'
77
import { ZoomLicenseType } from '../../../utils/constants'
88
import createMockingHelper from '../../../api/__tests__/__util__'
99
import { levelConfigs } from '../../../../../imports/logger/options'
10-
import { GoodIDUtils } from '../../../../goodid/utils'
10+
import GoodIDUtils from '../../../../goodid/utils'
1111
// make sure age test fails
1212
GoodIDUtils.ageGenderCheck = jest.fn().mockResolvedValue({ age: { min: 15 } })
1313

0 commit comments

Comments
 (0)