From 715a3b88fc7f1f95a7a4d98469c55c0ad0e442a8 Mon Sep 17 00:00:00 2001 From: Matt Wilde Date: Thu, 16 Jan 2025 09:19:14 -0500 Subject: [PATCH] verify in test that server starts before we get the redirect uri --- test/commands/login.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/commands/login.mjs b/test/commands/login.mjs index e76c4449..8222634c 100644 --- a/test/commands/login.mjs +++ b/test/commands/login.mjs @@ -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(