Skip to content

Commit fbd9a26

Browse files
committed
Refactor MagicPathRewriterTests to use platform-agnostic checks for magic path replacements
1 parent bc28fbc commit fbd9a26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Confix.Tool/test/Confix.Tool.Tests/Middlewares/MagicPathRewriterTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ public void Rewrite_MixedNullAndMagicPaths_ReplacesCorrectly()
178178
Assert.Null(resultObj["nullValue"]);
179179
Assert.Null(resultObj["anotherNull"]);
180180

181-
// Magic paths should be replaced
182-
Assert.Contains("/home-location/", resultObj["homePath"]?.ToString());
183-
Assert.Contains("/file-location/", resultObj["filePath"]?.ToString());
181+
// Magic paths should be replaced (use platform-agnostic check)
182+
Assert.Contains("home-location", resultObj["homePath"]?.ToString());
183+
Assert.Contains("file-location", resultObj["filePath"]?.ToString());
184184
}
185185

186186
[Fact]

0 commit comments

Comments
 (0)