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.
30 lines
813 B
30 lines
813 B
--- |
|
source: tests/e2e.rs |
|
expression: "&source.trim()" |
|
--- |
|
$ErrorActionPreference = "Stop" |
|
fnm env | Out-String | Invoke-Expression |
|
If ("$(fnm current)" -ne "none") { |
|
Write-Output ('Expected currently activated version to be "none", Got: ' + $(fnm current)) |
|
exit 1 |
|
} |
|
|
|
fnm install v8.11.3 |
|
fnm install v10.10.0 |
|
fnm use v8.11.3 |
|
If ("$(fnm current)" -ne "v8.11.3") { |
|
Write-Output ('Expected currently activated version to be "v8.11.3", Got: ' + $(fnm current)) |
|
exit 1 |
|
} |
|
|
|
fnm use v10.10.0 |
|
If ("$(fnm current)" -ne "v10.10.0") { |
|
Write-Output ('Expected currently activated version to be "v10.10.0", Got: ' + $(fnm current)) |
|
exit 1 |
|
} |
|
|
|
fnm use system |
|
If ("$(fnm current)" -ne "system") { |
|
Write-Output ('Expected currently activated version to be "system", Got: ' + $(fnm current)) |
|
exit 1 |
|
}
|
|
|