Skip to content

Commit

Permalink
Fixed integration tests for Windows users (#7683)
Browse files Browse the repository at this point in the history
  • Loading branch information
CronKz authored Nov 18, 2024
1 parent 2e4a00e commit 579d96f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CookieCrumble/src/CookieCrumble/Snapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,12 @@ private static bool MatchSnapshot(
bool inline,
[NotNullWhen(false)] out string? snapshotDiff)
{
if (OperatingSystem.IsWindows())
{
// Normalize escaped line endings
after = after.Replace("\\r\\n", "\\n");
}

var diff = InlineDiffBuilder.Diff(before, after);

if (diff.HasDifferences)
Expand Down

0 comments on commit 579d96f

Please sign in to comment.