Skip to content

Commit 4fa0b70

Browse files
committed
test: fallbacks
1 parent ae5c65b commit 4fa0b70

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/jss/tests/jss-tests.ts

+25
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,31 @@ attachedStyleSheet.addRules({
7272
}
7373
})
7474

75+
// fallbacks test
76+
attachedStyleSheet.addRules({
77+
rule4: {
78+
fallbacks: {
79+
fontFamily: 'other',
80+
color: '#black'
81+
},
82+
fontFamily: 'Roboto',
83+
color: '#FFFFFF'
84+
},
85+
rule5: {
86+
// @ts-expect-error
87+
fallbacks: {
88+
borderRadius: ['solid', 2],
89+
fontSize: Symbol()
90+
},
91+
borderRadius: ['solid', 2],
92+
fontSize: 17
93+
},
94+
rule6: {
95+
// @ts-expect-error
96+
fallbacks: Symbol()
97+
}
98+
})
99+
75100
const styleSheet2 = sharedInstance.createStyleSheet({
76101
container: {
77102
background: '#000099'

0 commit comments

Comments
 (0)