Skip to content

Commit f67a246

Browse files
tomlarsevexx32
authored andcommitted
Moved $Aliases to the correct scope (#173)
1 parent e0a54b0 commit f67a246

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

PSKoans/Koans/Cmdlets 1/AboutPSProviders.Koans.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ Describe 'Alias Provider' {
3131
when a new module is imported.
3232
#>
3333
Context 'Direct Access' {
34+
$Aliases = Get-ChildItem 'Alias:'
3435

3536
It 'can be queried with generic provider cmdlets' {
36-
$Aliases = Get-ChildItem 'Alias:'
37-
3837
__ | Should -Be $Aliases.Name[0]
3938
__ | Should -Be $Aliases.Definition[0]
4039
}

0 commit comments

Comments
 (0)