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" {
72
72
73
73
Context " When given a glob" {
74
74
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
78
78
}
79
79
}
80
80
81
81
Context " When given a FileSystem PSDrive" {
82
82
It " Recognizes the path" {
83
83
$freeDrive = 69 .. 90 | % {([char ]$_ )+ " :" } | ? {! (Test-Path $_ )} | Select-Object - First 1
84
84
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
88
88
}
89
89
}
90
90
You can’t perform that action at this time.
0 commit comments