Skip to content

Commit 5c5ae04

Browse files
authored
Fix Windows CI build (#17878)
This PR fixes a Windows CI issue due to the recently merged #17846 There might be better ways to solve this, but essentially we want to make sure we are always dealing with `\n` and not `\r\n`. This PR fixes that by replacing all `\r\n` with `\n` in the tests.
1 parent 6a1df6a commit 5c5ae04

File tree

1 file changed

+2
-2
lines changed
  • crates/oxide/src/extractor/pre_processors

1 file changed

+2
-2
lines changed

crates/oxide/src/extractor/pre_processors/haml.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ mod tests {
425425
let actual = Haml::extract_annotated(include_bytes!("./test-fixtures/haml/src-17051.haml"));
426426
let expected = include_str!("./test-fixtures/haml/dst-17051.haml");
427427

428-
assert_eq!(actual, expected);
428+
assert_eq!(actual.replace("\r\n", "\n"), expected.replace("\r\n", "\n"));
429429
}
430430

431431
// https://github.com/tailwindlabs/tailwindcss/issues/17813
@@ -434,7 +434,7 @@ mod tests {
434434
let actual = Haml::extract_annotated(include_bytes!("./test-fixtures/haml/src-17813.haml"));
435435
let expected = include_str!("./test-fixtures/haml/dst-17813.haml");
436436

437-
assert_eq!(actual, expected);
437+
assert_eq!(actual.replace("\r\n", "\n"), expected.replace("\r\n", "\n"));
438438
}
439439

440440
#[test]

0 commit comments

Comments
 (0)