aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mdx_expression_flow.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-11-25 12:36:15 +0100
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-11-25 12:36:15 +0100
commit53173e52b151537ad8510da5e7802f342d24a372 (patch)
treed904053e6679d0a89db7affa8a9b20f160a26d65 /tests/mdx_expression_flow.rs
parent7f06d55d84db512cc9b1eee0ef23db2d7bf30214 (diff)
downloadmarkdown-rs-53173e52b151537ad8510da5e7802f342d24a372.tar.gz
markdown-rs-53173e52b151537ad8510da5e7802f342d24a372.tar.bz2
markdown-rs-53173e52b151537ad8510da5e7802f342d24a372.zip
Remove unneeded tests
Diffstat (limited to '')
-rw-r--r--tests/mdx_expression_flow.rs10
1 files changed, 5 insertions, 5 deletions
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("<a {b} />", &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("<a {...b,c} d>", &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("<a {} />", &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("<a {/* b */} />", &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"
);