Skip to content

Commit eb187a4

Browse files
committed
Add failing test for composing default class
1 parent fc7f350 commit eb187a4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/lib.rs

+29
Original file line numberDiff line numberDiff line change
@@ -24064,6 +24064,35 @@ mod tests {
2406424064
false,
2406524065
);
2406624066

24067+
css_modules_test(
24068+
r#"
24069+
.a {
24070+
composes: default;
24071+
color: red;
24072+
}
24073+
24074+
.default {
24075+
color: blue;
24076+
}
24077+
"#,
24078+
indoc! {r#"
24079+
.EgL3uq_a {
24080+
color: red;
24081+
}
24082+
24083+
.EgL3uq_default {
24084+
color: #00f;
24085+
}
24086+
"#},
24087+
map! {
24088+
"a" => "EgL3uq_a",
24089+
"default" => "EgL3uq_default"
24090+
},
24091+
HashMap::new(),
24092+
Default::default(),
24093+
false
24094+
);
24095+
2406724096
css_modules_test(
2406824097
r#"
2406924098
.foo {

0 commit comments

Comments
 (0)