Skip to content

Commit

Permalink
verify in test that server starts before we get the redirect uri
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilde345 committed Jan 16, 2025
1 parent 210fd02 commit 715a3b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/commands/login.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ describe("login", function () {

// We start the loopback server
expect(oauthClient.start.called).to.be.true;
expect(oauthClient.start.calledBefore(oauthClient.getOAuthParams)).to.be
.true;
// We open auth url in the browser and prompt user
expect(container.resolve("open").calledWith("http://dashboard-url.com"));
expect(logger.stdout).to.have.been.calledWith(
Expand Down

0 comments on commit 715a3b8

Please sign in to comment.