Issue with AboutPSProviders #179
Labels
Category-Koans
Invoking the Great Doubt
Issue-Bug 🐛
Something's wrong!
Up For Grabs / Hacktoberfest 💻
If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it.
Projects
On the following lines there should be '__' instead of __.
37 __ | Should -Be $Aliases.Name[0]
38 __ | Should -Be $Aliases.Definition[0]
72 $CmdletName = __
95 __ | Should -Be $Alias:gci
102 __ | Should -Be $AliasTarget
241 __ | Should -Be $VariableData.Options
257 __ | Should -Be $Variables.Where{$_.Name -eq 'ConfirmPreference'}.Value
279 __ | Should -Be $Info.Options
288 __ | Should -Be $Get
I think you tried to show that the number of aliases will grow by one after creating a new alias, so assuming that we need to reassign $Aliases = Get-ChildItem 'Alias:' before line 55 to be able to see the new result, otherwise, this line will be the exact copy of line 49.
48 It 'can create aliases too!' {
49 __ | Should -Be $Aliases.Count
50
51 New-Item -Path 'Alias:\grok' -Value 'Get-Item' -ErrorAction SilentlyContinue
52 $File = grok '__' -ErrorAction SilentlyContinue
53
54 $File | Should -BeOfType 'System.IO.FileInfo'
55 __ | Should -Be $Aliases.Count
56
57 Remove-Item -Path 'Alias:\grok'
58 }
On this block, I had to change the index number so that I can pass the test because my $Functions[5] is 'AfterAll' function of the Pester module which has no verb or noun. This actually does not always result in the same names so it's hard to find an index that can be applied to everyone and every situation.
On these lines, I couldn't get them to work no matter what I put as the answer. It keeps telling "no exception was thrown.". I'm not sure if I'm missing something or there is something wrong with these lines.
251 {Get-Item 'Variable:\Test'} | Should -Throw -ExceptionType __
268 {Remove-Item 'Variable:\Test'} | Should -Throw -ExceptionType __
And finally, on line 267 __ | Should -Be $Var I couldn't find any other answer but $Var. This one is for my own information so it's not an issue. :)
The text was updated successfully, but these errors were encountered: