mirror of
https://github.com/nix-community/NixOS-WSL.git
synced 2026-11-07 14:59:35 +00:00
24 lines
379 B
PowerShell
24 lines
379 B
PowerShell
BeforeAll {
|
|
. $PSScriptRoot/lib/lib.ps1
|
|
}
|
|
|
|
Describe "Exit Codes" {
|
|
BeforeAll {
|
|
$distro = [Distro]::new()
|
|
}
|
|
|
|
It "should return 0 when running true" {
|
|
$distro.Launch("true")
|
|
$LASTEXITCODE | Should -Be 0
|
|
}
|
|
|
|
It "should return 1 when running false" {
|
|
$distro.Launch("false")
|
|
$LASTEXITCODE | Should -Be 1
|
|
}
|
|
|
|
AfterAll {
|
|
$distro.Uninstall()
|
|
}
|
|
}
|