Skip to content

Commit 5614c8b

Browse files
committed
Fix Windows open browser test expectation
1 parent 82004ed commit 5614c8b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/e2e/languages/cli/test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,14 +1146,13 @@ async function runAuthChecks() {
11461146
assert.ok(captured, "expected openBrowser to spawn an open command");
11471147
const expectedCommand =
11481148
process.platform === "win32"
1149-
? "cmd"
1149+
? "rundll32"
11501150
: process.platform === "darwin"
11511151
? "open"
11521152
: "xdg-open";
11531153
assert.equal(captured.command, expectedCommand);
1154-
// win32 quotes the URL arg, so match by substring rather than equality.
11551154
assert.ok(
1156-
captured.args.some((arg) => arg.includes(url)),
1155+
captured.args.includes(url),
11571156
"expected the verification URL to be passed to the open command",
11581157
);
11591158

0 commit comments

Comments
 (0)