From 53173e52b151537ad8510da5e7802f342d24a372 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 25 Nov 2022 12:36:15 +0100 Subject: Remove unneeded tests --- tests/mdx_expression_flow.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/mdx_expression_flow.rs') diff --git a/tests/mdx_expression_flow.rs b/tests/mdx_expression_flow.rs index b5e0c4f..e549080 100644 --- a/tests/mdx_expression_flow.rs +++ b/tests/mdx_expression_flow.rs @@ -176,7 +176,7 @@ fn mdx_expression_flow_gnostic() -> Result<(), String> { assert_eq!( to_html_with_options("{b { c }", &swc).err().unwrap(), - "1:4: Could not parse expression with swc: Unexpected content after expression", + "1:9: Could not parse expression with swc: Unexpected content after expression", "should crash if no closing brace is found (2)" ); @@ -239,7 +239,7 @@ fn mdx_expression_spread() -> Result<(), String> { assert_eq!( to_html_with_options("", &swc).err().unwrap(), - "1:5: Expected a single spread value, such as `...x`", + "1:5: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`)", "should crash if not a spread" ); @@ -251,13 +251,13 @@ fn mdx_expression_spread() -> Result<(), String> { assert_eq!( to_html_with_options("", &swc).err().unwrap(), - "1:5: Expected a single spread value, such as `...x`", + "1:5: Unexpected extra content in spread (such as `{...x,y}`): only a single spread is supported (such as `{...x}`)", "should crash if a spread and other things" ); assert_eq!( to_html_with_options("", &swc).err().unwrap(), - "1:5: Expected a single spread value, such as `...x`", + "1:9: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`)", "should crash on an empty spread" ); @@ -269,7 +269,7 @@ fn mdx_expression_spread() -> Result<(), String> { assert_eq!( to_html_with_options("", &swc).err().unwrap(), - "1:5: Expected a single spread value, such as `...x`", + "1:5: Unexpected prop in spread (such as `{x}`): only a spread is supported (such as `{...x}`)", "should crash on a comment spread" ); -- cgit