mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Fixed Pester Get-Location test
This commit is contained in:
1 parent
0748910278
commit
a504defbb9
1 file changed
+4
-2
@@ -1,6 +1,7 @@
|
||||
Describe "Get-Location" {
|
||||
$currentDirectory=[System.IO.Directory]::GetCurrentDirectory()
|
||||
BeforeEach {
|
||||
pushd $env:HOME
|
||||
pushd $currentDirectory
|
||||
}
|
||||
|
||||
AfterEach {
|
||||
@@ -8,7 +9,8 @@ Describe "Get-Location" {
|
||||
}
|
||||
|
||||
It "Should list the output of the current working directory" {
|
||||
(Get-Location).Path | Should Be $env:HOME
|
||||
|
||||
(Get-Location).Path | Should Be $currentDirectory
|
||||
}
|
||||
|
||||
It "Should do exactly the same thing as its alias" {
|
||||
|
||||
Reference in new issue
Block a user