Skip to content

Commit a13998e

Browse files
committed
Add testcases
1 parent b71f5ed commit a13998e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/extractor/src/css_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ mod tests {
975975
#[case("`width: ${func(\"hello\\nworld\")}px;`", vec![("width", "`${func(\"hello\\nworld\")}px`", None)])]
976976
#[case("`width: ${func('test\\'quote')}px;`", vec![("width", "`${func(\"test'quote\")}px`", None)])]
977977
#[case("`width: ${(props)=>props.b ? \"hello\\\"world\" : \"test\"}px;`", vec![("width", "`${((props)=>props.b ? 'hello\\\"world' : 'test')(rest)}px`", None)])]
978+
#[case("`width: ${(props)=>props.b ? \"hello\\\"world\\\"more\" : \"test\"}px;`", vec![("width", "`${((props)=>props.b ? 'hello\\\"world\\\"more' : 'test')(rest)}px`", None)])]
978979
// wrong cases
979980
#[case(
980981
"`@media (min-width: 768px) {

0 commit comments

Comments
 (0)