Skip to content

Commit 534c78e

Browse files
author
kborle
committed
minor fix: uncommented the test validation statement
1 parent 05de5fe commit 534c78e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/Engine/InvokeScriptAnalyzer.tests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)