diff --git a/PSSecretScanner.Build.ps1 b/PSSecretScanner.Build.ps1 index 242fd14..cb17d7f 100644 --- a/PSSecretScanner.Build.ps1 +++ b/PSSecretScanner.Build.ps1 @@ -5,7 +5,7 @@ [string]$HelpSourcePath = "$PSScriptRoot\Docs\Help" [string]$EzoutSourcePath = "$PSScriptRoot" -[string]$Version = '1.0.9' +[string]$Version = '2.0.0' [string]$OutputPath = "$PSScriptRoot\Bin\$ModuleName\$Version" diff --git a/Tests/RegexPatternTests/RegexPattern.Tests.ps1 b/Tests/RegexPatternTests/RegexPattern.Tests.ps1 index a77dead..84b4c49 100644 --- a/Tests/RegexPatternTests/RegexPattern.Tests.ps1 +++ b/Tests/RegexPatternTests/RegexPattern.Tests.ps1 @@ -20,14 +20,14 @@ Describe 'Pattern verification tests' { Context 'Should find patterns' -Tag 'match' { It 'Should find pattern <_.Pattern>' -TestCases $ShouldFindPatterns { $_.Pattern | Out-File TestDrive:\MatchFile.txt - $r = Find-Secret -Path TestDrive:\MatchFile.txt -OutputPreference Object + $r = Find-Secret -Path TestDrive:\MatchFile.txt $r.count | Should -BeGreaterOrEqual 1 } } Context 'Should not find patterns' -Tag 'notmatch' { It 'Should not find pattern <_.Pattern>' -TestCases $ShouldNotFindPatterns { $_.Pattern | Out-File TestDrive:\MatchFile.txt - $r = Find-Secret -Path TestDrive:\MatchFile.txt -OutputPreference Object + $r = Find-Secret -Path TestDrive:\MatchFile.txt $r.count | Should -Be 0 } }