summaryrefslogtreecommitdiff
path: root/cli/graph.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/graph.rs')
-rw-r--r--cli/graph.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/graph.rs b/cli/graph.rs
index d3f05c5f4..ed8f5cad7 100644
--- a/cli/graph.rs
+++ b/cli/graph.rs
@@ -1030,12 +1030,13 @@ mod tests {
);
let h = handler.borrow();
assert_eq!(h.cache_calls.len(), 1, "only one file should be emitted");
+ // FIXME(bartlomieju): had to add space in `<div>`, probably a quirk in swc_ecma_codegen
assert!(
h.cache_calls[0]
.2
.to_string()
.unwrap()
- .contains("<div>Hello world!</div>"),
+ .contains("<div >Hello world!</div>"),
"jsx should have been preserved"
);
}