Skip to content

Commit 1b4d43c

Browse files
committed
replace \r\n with \n
1 parent 1c79ab1 commit 1b4d43c

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl Haml {
341341
mod tests {
342342
use super::Haml;
343343
use crate::extractor::pre_processors::pre_processor::PreProcessor;
344-
// use pretty_assertions::assert_eq;
344+
use pretty_assertions::assert_eq;
345345

346346
#[test]
347347
fn test_haml_pre_processor() {
@@ -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)