Skip to content

Commit bfb7d05

Browse files
author
Håkon Harnes
committed
fix(tests): add -NoProfile to util tests
1 parent bcb1f20 commit bfb7d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/util_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe("util", function()
4545
local command = 'command "path/to/file"'
4646
local output, exit_code = util.execute(command, true)
4747

48-
assert.equal([[powershell.exe -Command "command 'path/to/file'"]], output)
48+
assert.equal([[powershell.exe -NoProfile -Command "command 'path/to/file'"]], output)
4949
assert.equal(exit_code, 0)
5050
end)
5151

@@ -61,7 +61,7 @@ describe("util", function()
6161
local command = "command 'path/to/file'"
6262
local output, exit_code = util.execute(command, true)
6363

64-
assert.equal([[powershell.exe -Command 'command "path/to/file"']], output)
64+
assert.equal([[powershell.exe -NoProfile -Command 'command "path/to/file"']], output)
6565
assert.equal(exit_code, 0)
6666
end)
6767
end)

0 commit comments

Comments
 (0)