test for single hash to calc and url

This commit is contained in:
Connor Skees 2020-08-19 03:49:12 -04:00
parent 617a421612
commit ff52e56600
2 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,11 @@ test!(
"a {\n color: calc('a');\n}\n",
"a {\n color: calc(\"a\");\n}\n"
);
test!(
calc_hash_no_interpolation,
"a {\n color: calc(#);\n}\n",
"a {\n color: calc(#);\n}\n"
);
test!(
element_whitespace,
"a {\n color: element( 1 );\n}\n",

View File

@ -142,6 +142,11 @@ test!(
"a {\n color: -webkit-url(https://google.com);\n}\n",
"a {\n color: url(https://google.com);\n}\n"
);
test!(
url_hash_no_interpolation,
"a {\n color: url(#);\n}\n",
"a {\n color: url(#);\n}\n"
);
error!(
url_nothing_after_forward_slash_in_interpolation,
"a { color: url(#{/", "Error: Expected expression."