Add CSS & bem tests

This commit is contained in:
ConnorSkees 2020-01-11 18:43:42 -05:00
parent eccb02a426
commit 6746ac1619

View File

@ -620,4 +620,14 @@ mod test_css {
"a, b {\n& {\n color: red;\n}\n}\n",
"a, b {\n color: red;\n}\n"
);
test!(
bem_dash_dash_selector,
"a {\n&--b {\n color: red;\n}\n}\n",
"a--b {\n color: red;\n}\n"
);
test!(
bem_underscore_selector,
"a {\n&__b {\n color: red;\n}\n}\n",
"a__b {\n color: red;\n}\n"
);
}