Skip to content

Commit

Permalink
Fix FileContentMatchMultiline.ps1. (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvs authored and nohwnd committed Apr 11, 2018
1 parent bccc25e commit 388af56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Functions/Assertions/FileContentMatchMultiline.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function PesterFileContentMatchMultiline($ActualValue, $ExpectedContent, [switch] $Negate, [String] $Because) {
$succeeded = [bool] ((Get-Content $ActualValue -delim ([char]0)) -match $ExpectedContent)
$succeeded = [bool] ((& $SafeCommands['Get-Content'] $ActualValue -Delimiter ([char]0)) -match $ExpectedContent)

if ($Negate) { $succeeded = -not $succeeded }

Expand Down

0 comments on commit 388af56

Please sign in to comment.