You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
699 B
22 lines
699 B
import getStderr from "./shellcode/get-stderr.js" |
|
import { script } from "./shellcode/script.js" |
|
import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js" |
|
import describe from "./describe.js" |
|
|
|
for (const shell of [Bash, Zsh, Fish, PowerShell]) { |
|
describe(shell, () => { |
|
test(`warns about an existing installation`, async () => { |
|
await script(shell) |
|
.then(shell.env({})) |
|
.then(shell.call("fnm", ["install", "v8.11.3"])) |
|
.then( |
|
shell.scriptOutputContains( |
|
getStderr(shell.call("fnm", ["install", "v8.11.3"])), |
|
"'already installed'" |
|
) |
|
) |
|
.takeSnapshot(shell) |
|
.execute(shell) |
|
}) |
|
}) |
|
}
|
|
|