aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mdx_jsx_text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mdx_jsx_text.rs')
-rw-r--r--tests/mdx_jsx_text.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/mdx_jsx_text.rs b/tests/mdx_jsx_text.rs
index e403e6d..f548672 100644
--- a/tests/mdx_jsx_text.rs
+++ b/tests/mdx_jsx_text.rs
@@ -589,10 +589,8 @@ fn mdx_jsx_text_gnostic() -> Result<(), String> {
);
assert_eq!(
- to_html_with_options("a <b c={?} /> d", &swc)
- .err()
- .unwrap(),
- "1:16: Could not parse expression with swc: Unexpected token `?`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` for template literal, (, or an identifier",
+ to_html_with_options("a <b c={?} /> d", &swc).err().unwrap(),
+ "1:16: Could not parse expression with swc: Expression expected",
"should crash on invalid JS in an attribute value expression"
);