File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/devtools-connect/src Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ describe('devtools connect', function () {
472
472
} ) ;
473
473
} ) ;
474
474
475
- describe ( 'isHumanOidcFlow' , function ( ) {
475
+ describe . only ( 'isHumanOidcFlow' , function ( ) {
476
476
it ( 'returns false by default' , function ( ) {
477
477
expect ( isHumanOidcFlow ( 'mongodb://example/' , { } ) ) . to . equal ( false ) ;
478
478
} ) ;
@@ -493,6 +493,16 @@ describe('devtools connect', function () {
493
493
) . to . equal ( false ) ;
494
494
} ) ;
495
495
496
+ it ( 'returns false if the OIDC_CALLBACK is set' , function ( ) {
497
+ expect (
498
+ isHumanOidcFlow ( 'mongodb://example/?authMechanism=MONGODB-OIDC' , {
499
+ authMechanismProperties : {
500
+ OIDC_CALLBACK : ( ) => Promise . resolve ( { accessToken : 'abc123' } ) ,
501
+ } ,
502
+ } ) ,
503
+ ) . to . equal ( false ) ;
504
+ } ) ;
505
+
496
506
it ( 'returns false if the ENVIRONMENT url option is set' , function ( ) {
497
507
expect (
498
508
isHumanOidcFlow (
You can’t perform that action at this time.
0 commit comments