aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mdx_expression_text.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/mdx_expression_text.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/mdx_expression_text.rs b/tests/mdx_expression_text.rs
index 0d25105..169aca3 100644
--- a/tests/mdx_expression_text.rs
+++ b/tests/mdx_expression_text.rs
@@ -117,8 +117,10 @@ fn mdx_expression_text_gnostic_core() -> Result<(), String> {
);
assert_eq!(
- to_html_with_options("a {var b = \"c\"} d", &swc).err().unwrap(),
- "1:4: Could not parse expression with swc: Unexpected token `var`. 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 {var b = \"c\"} d", &swc)
+ .err()
+ .unwrap(),
+ "1:4: Could not parse expression with swc: Expression expected",
"should crash on non-expressions"
);