Skip to content

Commit db40f45

Browse files
committed
test: add more test cases
1 parent dc8b17c commit db40f45

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/__tests__/fixtures/prop-condition.css

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
.Label__prop__29d2fe {
1111
color: black
1212
}
13+
.Another__prop__44eef9 {
14+
color: yellow
15+
}

src/__tests__/fixtures/prop-condition.js

+7
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ export function Label({
77
return React.createElement("div", { ...props, className
88
});
99
}
10+
export function Another({
11+
variant = {},
12+
...props }) {
13+
let className = styles.Another + (props.one < props.another() && (props.two > 2 || props.three == "three") ? ' ' + styles.Another__prop__44eef9 : '');
14+
return React.createElement("div", { ...props, className
15+
});
16+
}

src/__tests__/fixtures/prop-condition.react.css

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ Label:prop(callback()) {
1010
Label:prop(indicies.some(x => x.ok)) {
1111
color: black;
1212
}
13+
Another:prop(one < another() && (two > 2 || three == "three")) {
14+
color: yellow;
15+
}

0 commit comments

Comments
 (0)