Skip to content

Commit 07ecdff

Browse files
committed
add random test
1 parent dab4864 commit 07ecdff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/devtools-connect/src/connect.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,16 @@ describe('devtools connect', function () {
493493
).to.equal(false);
494494
});
495495

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+
496506
it('returns false if the ENVIRONMENT url option is set', function () {
497507
expect(
498508
isHumanOidcFlow(

0 commit comments

Comments
 (0)