Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Nov 29, 2024
1 parent 01af45f commit 46b32c1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/format_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,19 @@ border-top-right-radius: 5px;
`;
"#
);

let file_text = "const htmlString = html`<body>Hello there!</body>`;\n";

let formatted_text = format_text_with_external_formatter(
&std::path::PathBuf::from("foo.js"),
None,
file_text.into(),
&ConfigurationBuilder::new().build(),
Box::new(external_formatter),
)
.unwrap()
.unwrap();

assert_eq!(formatted_text, file_text);
}
}

0 comments on commit 46b32c1

Please sign in to comment.