@@ -20,7 +20,7 @@ test("inline variable", () => {
2020 } ) ;
2121} ) ;
2222
23- test ( "combined inline variable " , ( ) => {
23+ test ( "combined inline variables " , ( ) => {
2424 registerCSS ( `
2525 .my-class-1 { width: var(--my-var); }
2626 .my-class-2 { --my-var: 10px; }
@@ -142,7 +142,7 @@ test(":root variables", () => {
142142 < View testID = { testID } className = "my-class" /> ,
143143 ) . getByTestId ( testID ) ;
144144
145- expect ( component . props . style ) . toStrictEqual ( { color : "red " } ) ;
145+ expect ( component . props . style ) . toStrictEqual ( { color : "#f00 " } ) ;
146146} ) ;
147147
148148test ( "can apply and set new variables" , ( ) => {
@@ -166,13 +166,13 @@ test("can apply and set new variables", () => {
166166 ) ;
167167
168168 expect ( screen . getByTestId ( testIDs . one ) . props . style ) . toStrictEqual ( {
169- color : "red " ,
169+ color : "#f00 " ,
170170 } ) ;
171171 expect ( screen . getByTestId ( testIDs . two ) . props . style ) . toStrictEqual ( {
172- color : "red " ,
172+ color : "#f00 " ,
173173 } ) ;
174174 expect ( screen . getByTestId ( testIDs . three ) . props . style ) . toStrictEqual ( {
175- color : "green " ,
175+ color : "#008000 " ,
176176 } ) ;
177177} ) ;
178178
@@ -199,7 +199,7 @@ test("variables will be inherited", () => {
199199 ) ;
200200
201201 expect ( screen . getByTestId ( testIDs . three ) . props . style ) . toStrictEqual ( {
202- color : "green " ,
202+ color : "#008000 " ,
203203 } ) ;
204204} ) ;
205205
@@ -212,7 +212,7 @@ test("useUnsafeVariable", () => {
212212 render ( < View testID = { testID } className = "test" /> ) ;
213213 const component = screen . getByTestId ( testID ) ;
214214
215- expect ( component . props . style ) . toStrictEqual ( { color : "red " } ) ;
215+ expect ( component . props . style ) . toStrictEqual ( { color : "#f00 " } ) ;
216216} ) ;
217217
218218test ( "ratio values" , ( ) => {
@@ -224,7 +224,7 @@ test("ratio values", () => {
224224 render ( < View testID = { testID } className = "test" /> ) ;
225225 const component = screen . getByTestId ( testID ) ;
226226
227- expect ( component . props . style ) . toStrictEqual ( { aspectRatio : "16 / 9" } ) ;
227+ expect ( component . props . style ) . toStrictEqual ( { aspectRatio : "16/ 9" } ) ;
228228} ) ;
229229
230230test ( "VariableContextProvider" , ( ) => {
@@ -269,5 +269,5 @@ test("variable overriding with classes", () => {
269269 ) ;
270270
271271 const component = screen . getByTestId ( testID ) ;
272- expect ( component . props . style ) . toStrictEqual ( { color : "red " } ) ;
272+ expect ( component . props . style ) . toStrictEqual ( { color : "#f00 " } ) ;
273273} ) ;
0 commit comments