Skip to content

Commit e289e7a

Browse files
committed
#4001 fix tests
1 parent baf6ae5 commit e289e7a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/backend/tests/test-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ export const createTestGuestDefinition = async (user: User, organizationId: stri
986986
term: 'Term',
987987
description: 'Description',
988988
order: 0,
989+
type: 'INFO_PAGE',
989990
organizationId,
990991
userCreatedId: user.userId
991992
}

src/backend/tests/unit/recruitment.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
createTestUser,
1212
resetUsers
1313
} from '../test-utils.js';
14+
import { GuestDefinitionType } from 'shared';
1415
import {
1516
batmanAppAdmin,
1617
wonderwomanGuest,
@@ -351,6 +352,7 @@ describe('Recruitment Tests', () => {
351352
'test term',
352353
'test description',
353354
2,
355+
GuestDefinitionType.INFO_PAGE,
354356
'iconname',
355357
'buttonTxt',
356358
'buttonLink'
@@ -390,6 +392,7 @@ describe('Recruitment Tests', () => {
390392
'test description',
391393
'test definition id',
392394
2,
395+
GuestDefinitionType.INFO_PAGE,
393396
'buttonTxt',
394397
'buttonLink'
395398
)
@@ -406,6 +409,7 @@ describe('Recruitment Tests', () => {
406409
'description',
407410
'definition id',
408411
2,
412+
GuestDefinitionType.INFO_PAGE,
409413
'buttonTxt',
410414
'buttonLink'
411415
)
@@ -419,6 +423,7 @@ describe('Recruitment Tests', () => {
419423
'test term',
420424
'test description',
421425
2,
426+
GuestDefinitionType.INFO_PAGE,
422427
'iconname',
423428
'buttonTxt',
424429
'buttonLink'
@@ -431,6 +436,7 @@ describe('Recruitment Tests', () => {
431436
'new description',
432437
def.definitionId,
433438
4,
439+
GuestDefinitionType.INFO_PAGE,
434440
'new icon',
435441
'new text',
436442
'new link'
@@ -451,6 +457,7 @@ describe('Recruitment Tests', () => {
451457
'test term',
452458
'test description',
453459
2,
460+
GuestDefinitionType.INFO_PAGE,
454461
'iconname',
455462
'buttonTxt',
456463
'buttonLink'
@@ -469,6 +476,7 @@ describe('Recruitment Tests', () => {
469476
'description',
470477
def.definitionId,
471478
2,
479+
GuestDefinitionType.INFO_PAGE,
472480
'buttonTxt',
473481
'buttonLink'
474482
)
@@ -555,6 +563,7 @@ describe('Recruitment Tests', () => {
555563
'test term',
556564
'test description',
557565
2,
566+
GuestDefinitionType.INFO_PAGE,
558567
'iconname',
559568
'buttonTxt',
560569
'buttonLink'
@@ -566,6 +575,7 @@ describe('Recruitment Tests', () => {
566575
'test term',
567576
'test description',
568577
2,
578+
GuestDefinitionType.INFO_PAGE,
569579
'iconname',
570580
'buttonTxt',
571581
'buttonLink'

0 commit comments

Comments
 (0)