File tree 1 file changed +27
-25
lines changed
1 file changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -603,31 +603,33 @@ describe('api/_performApiRequest', () => {
603
603
} ) ;
604
604
} ) ;
605
605
606
- it ( 'should throw exception when tenantConfig is not initialized and Regional Endpoint is used' , async ( ) => {
607
- await expect (
608
- _performApiRequest < typeof request , typeof serverResponse > (
609
- auth ,
610
- HttpMethod . POST ,
611
- RegionalEndpoint . EXCHANGE_TOKEN ,
612
- request
613
- )
614
- ) . to . be . rejectedWith (
615
- FirebaseError ,
616
- 'Firebase: Operations not allowed for the auth object initialized. (auth/operation-not-allowed).'
617
- ) ;
618
- } ) ;
606
+ context ( 'throws Operation now allowed exception' , ( ) => {
607
+ it ( 'when tenantConfig is not initialized and Regional Endpoint is used' , async ( ) => {
608
+ await expect (
609
+ _performApiRequest < typeof request , typeof serverResponse > (
610
+ auth ,
611
+ HttpMethod . POST ,
612
+ RegionalEndpoint . EXCHANGE_TOKEN ,
613
+ request
614
+ )
615
+ ) . to . be . rejectedWith (
616
+ FirebaseError ,
617
+ 'Firebase: Operations not allowed for the auth object initialized. (auth/operation-not-allowed).'
618
+ ) ;
619
+ } ) ;
619
620
620
- it ( 'should throw exception when tenantConfig is initialized and default Endpoint is used' , async ( ) => {
621
- await expect (
622
- _performApiRequest < typeof request , typeof serverResponse > (
623
- regionalAuth ,
624
- HttpMethod . POST ,
625
- Endpoint . SIGN_UP ,
626
- request
627
- )
628
- ) . to . be . rejectedWith (
629
- FirebaseError ,
630
- 'Firebase: Operations not allowed for the auth object initialized. (auth/operation-not-allowed).'
631
- ) ;
621
+ it ( 'when tenantConfig is initialized and default Endpoint is used' , async ( ) => {
622
+ await expect (
623
+ _performApiRequest < typeof request , typeof serverResponse > (
624
+ regionalAuth ,
625
+ HttpMethod . POST ,
626
+ Endpoint . SIGN_UP ,
627
+ request
628
+ )
629
+ ) . to . be . rejectedWith (
630
+ FirebaseError ,
631
+ 'Firebase: Operations not allowed for the auth object initialized. (auth/operation-not-allowed).'
632
+ ) ;
633
+ } ) ;
632
634
} ) ;
633
635
} ) ;
You can’t perform that action at this time.
0 commit comments