Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmel committed Jan 26, 2024
1 parent 9ba32c8 commit 20fdc63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/suite/services.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,11 @@ describe("Code flow login service tests", () => {
"Should return undefined when server alias is empty.",
);
});

it("Should not sign in if link is not opened", async () => {
sinon.stub(env, "openExternal").value(async () => false);
await assert.rejects(() => signIn("http://127.0.0.1"));
});
});

describe("queryHistoryProvider", () => {
Expand Down

0 comments on commit 20fdc63

Please sign in to comment.