Skip to content

Commit 11a2567

Browse files
committed
random test
1 parent dab4864 commit 11a2567

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ describe('devtools connect', function () {
472472
});
473473
});
474474

475-
describe('isHumanOidcFlow', function () {
475+
describe.only('isHumanOidcFlow', function () {
476476
it('returns false by default', function () {
477477
expect(isHumanOidcFlow('mongodb://example/', {})).to.equal(false);
478478
});
@@ -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)