@@ -483,17 +483,17 @@ describe('Clerk singleton', () => {
483
483
touch : jest . fn ( ( ) => Promise . resolve ( ) ) ,
484
484
getToken : jest . fn ( ) ,
485
485
lastActiveToken : { getRawString : ( ) => 'mocked-token' } ,
486
- tasks : [ { key : 'select -organization' } ] ,
487
- currentTask : { key : 'select -organization' , __internal_getUrl : ( ) => 'https://sut/tasks/select -organization' } ,
486
+ tasks : [ { key : 'choose -organization' } ] ,
487
+ currentTask : { key : 'choose -organization' , __internal_getUrl : ( ) => 'https://sut/tasks/choose -organization' } ,
488
488
reload : jest . fn ( ( ) =>
489
489
Promise . resolve ( {
490
490
id : '1' ,
491
491
status : 'pending' ,
492
492
user : { } ,
493
- tasks : [ { key : 'select -organization' } ] ,
493
+ tasks : [ { key : 'choose -organization' } ] ,
494
494
currentTask : {
495
- key : 'select -organization' ,
496
- __internal_getUrl : ( ) => 'https://sut/tasks/select -organization' ,
495
+ key : 'choose -organization' ,
496
+ __internal_getUrl : ( ) => 'https://sut/tasks/choose -organization' ,
497
497
} ,
498
498
} ) ,
499
499
) ,
@@ -929,8 +929,8 @@ describe('Clerk singleton', () => {
929
929
id : '1' ,
930
930
status : 'pending' ,
931
931
user : { } ,
932
- tasks : [ { key : 'select -organization' } ] ,
933
- currentTask : { key : 'select -organization' , __internal_getUrl : ( ) => 'https://sut/tasks/select -organization' } ,
932
+ tasks : [ { key : 'choose -organization' } ] ,
933
+ currentTask : { key : 'choose -organization' , __internal_getUrl : ( ) => 'https://sut/tasks/choose -organization' } ,
934
934
lastActiveToken : { getRawString : ( ) => 'mocked-token' } ,
935
935
} ;
936
936
@@ -2438,8 +2438,8 @@ describe('Clerk singleton', () => {
2438
2438
id : '1' ,
2439
2439
status : 'pending' ,
2440
2440
user : { } ,
2441
- tasks : [ { key : 'select -organization' } ] ,
2442
- currentTask : { key : 'select -organization' , __internal_getUrl : ( ) => 'https://sut/tasks/select -organization' } ,
2441
+ tasks : [ { key : 'choose -organization' } ] ,
2442
+ currentTask : { key : 'choose -organization' , __internal_getUrl : ( ) => 'https://sut/tasks/choose -organization' } ,
2443
2443
lastActiveToken : { getRawString : ( ) => 'mocked-token' } ,
2444
2444
} ;
2445
2445
@@ -2481,14 +2481,14 @@ describe('Clerk singleton', () => {
2481
2481
await sut . load ( {
2482
2482
...mockedLoadOptions ,
2483
2483
taskUrls : {
2484
- 'select -organization' : '/onboarding/select -organization' ,
2484
+ 'choose -organization' : '/onboarding/choose -organization' ,
2485
2485
} ,
2486
2486
} ) ;
2487
2487
2488
2488
await sut . setActive ( { session : mockResource as any as PendingSessionResource } ) ;
2489
2489
await sut . __internal_navigateToTaskIfAvailable ( ) ;
2490
2490
2491
- expect ( mockNavigate . mock . calls [ 0 ] [ 0 ] ) . toBe ( '/onboarding/select -organization' ) ;
2491
+ expect ( mockNavigate . mock . calls [ 0 ] [ 0 ] ) . toBe ( '/onboarding/choose -organization' ) ;
2492
2492
} ) ;
2493
2493
} ) ;
2494
2494
0 commit comments