Skip to content

Commit

Permalink
Fix unit tests for linux/windows harmony
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Feb 25, 2024
1 parent c969473 commit ba571b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Test 1 █████████████████████ 10 
Test 2 █████████████████████████████████████████████ 20 
Test 2 █████████████████████████████████████████████ 20 
Test 3 █████████████████████████████████████████████████████████████████████ 30
1 change: 1 addition & 0 deletions PwshSpectreConsole.Tests/TestHelpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ function Assert-OutputMatchesSnapshot {
$compare = $Output -replace "`r", ""
Set-Content -Path $snapShotComparisonPath -Value $compare -NoNewline
$snapshot = Get-Content -Path $snapShotPath -Raw
$snapshot = $snapshot -replace "`r", ""
if($compare -ne $snapshot) {
Write-Host "Expected to match snapshot:`n`n$snapshot"
Write-Host "But the output was:`n`n$compare"
Expand Down

0 comments on commit ba571b2

Please sign in to comment.