File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,19 +72,19 @@ Describe "Test Path" {
7272
7373 Context " When given a glob" {
7474 It " Invokes on all the matching files" {
75- $numFilesResult = (Invoke-ScriptAnalyzer - Path $directory \R * .ps1 | Select-Object - Property ScriptName - Unique).Count
76- $numFilesExpected = Get-ChildItem - Path $directory \R * .ps1
77- # numFilesResult -eq $numFilesExpected | Should Be $true
75+ $numFilesResult = (Invoke-ScriptAnalyzer - Path $directory \Rule * .ps1 | Select-Object - Property ScriptName - Unique).Count
76+ $numFilesExpected = ( Get-ChildItem - Path $directory \Rule * .ps1).Count
77+ $ numFilesResult | Should be $numFilesExpected
7878 }
7979 }
8080
8181 Context " When given a FileSystem PSDrive" {
8282 It " Recognizes the path" {
8383 $freeDrive = 69 .. 90 | % {([char ]$_ )+ " :" } | ? {! (Test-Path $_ )} | Select-Object - First 1
8484 New-PSDrive - Name $freeDrive [0 ] - PSProvider FileSystem - Root $directory
85- $numFilesExpected = (Get-ChildItem - Path $freeDrive \* .ps1).Count
86- $numFilesResult = (Invoke-ScriptAnalyzer - Path $freeDrive \R * .ps1 | Select-Object - Property ScriptName - Unique).Count
87- # numFilesResult -eq $numFilesExpected | Should Be $true
85+ $numFilesExpected = (Get-ChildItem - Path $freeDrive \R * .ps1).Count
86+ $numFilesResult = (Invoke-ScriptAnalyzer - Path $freeDrive \Rule * .ps1 | Select-Object - Property ScriptName - Unique).Count
87+ $ numFilesResult | Should Be $numFilesExpected
8888 }
8989 }
9090
You can’t perform that action at this time.
0 commit comments