@@ -21,7 +21,7 @@ function config(overrides) {
21
21
} )
22
22
}
23
23
24
- test . only ( 'options are not required' , ( ) => {
24
+ test ( 'options are not required' , ( ) => {
25
25
const { components } = processPlugins ( [ container ( ) ] , config ( ) )
26
26
27
27
expect ( css ( components ) ) . toMatchCss ( `
@@ -45,7 +45,7 @@ test.only('options are not required', () => {
45
45
` )
46
46
} )
47
47
48
- test . only ( 'screens can be passed explicitly' , ( ) => {
48
+ test ( 'screens can be passed explicitly' , ( ) => {
49
49
const { components } = processPlugins (
50
50
[ container ( ) ] ,
51
51
config ( {
@@ -72,7 +72,7 @@ test.only('screens can be passed explicitly', () => {
72
72
` )
73
73
} )
74
74
75
- test . only ( 'screens are ordered ascending by min-width' , ( ) => {
75
+ test ( 'screens are ordered ascending by min-width' , ( ) => {
76
76
const { components } = processPlugins (
77
77
[ container ( ) ] ,
78
78
config ( {
@@ -99,7 +99,7 @@ test.only('screens are ordered ascending by min-width', () => {
99
99
` )
100
100
} )
101
101
102
- test . only ( 'screens are deduplicated by min-width' , ( ) => {
102
+ test ( 'screens are deduplicated by min-width' , ( ) => {
103
103
const { components } = processPlugins (
104
104
[ container ( ) ] ,
105
105
config ( {
@@ -130,7 +130,7 @@ test.only('screens are deduplicated by min-width', () => {
130
130
` )
131
131
} )
132
132
133
- test . only ( 'the container can be centered by default' , ( ) => {
133
+ test ( 'the container can be centered by default' , ( ) => {
134
134
const { components } = processPlugins (
135
135
[ container ( ) ] ,
136
136
config ( {
@@ -167,7 +167,7 @@ test.only('the container can be centered by default', () => {
167
167
` )
168
168
} )
169
169
170
- test . only ( 'horizontal padding can be included by default' , ( ) => {
170
+ test ( 'horizontal padding can be included by default' , ( ) => {
171
171
const { components } = processPlugins (
172
172
[ container ( ) ] ,
173
173
config ( {
@@ -204,7 +204,7 @@ test.only('horizontal padding can be included by default', () => {
204
204
` )
205
205
} )
206
206
207
- test . only ( 'responsive horizontal padding can be included by default' , ( ) => {
207
+ test ( 'responsive horizontal padding can be included by default' , ( ) => {
208
208
const { components } = processPlugins (
209
209
[ container ( ) ] ,
210
210
config ( {
@@ -258,7 +258,7 @@ test.only('responsive horizontal padding can be included by default', () => {
258
258
` )
259
259
} )
260
260
261
- test . only ( 'setting all options at once' , ( ) => {
261
+ test ( 'setting all options at once' , ( ) => {
262
262
const { components } = processPlugins (
263
263
[ container ( ) ] ,
264
264
config ( {
@@ -292,3 +292,39 @@ test.only('setting all options at once', () => {
292
292
}
293
293
` )
294
294
} )
295
+
296
+ test ( 'container can use variants' , ( ) => {
297
+ const { components } = processPlugins (
298
+ [ container ( ) ] ,
299
+ config ( {
300
+ theme : {
301
+ container : {
302
+ screens : [ '400px' , '500px' ] ,
303
+ } ,
304
+ } ,
305
+ variants : {
306
+ container : [ 'responsive' , 'hover' ] ,
307
+ } ,
308
+ } )
309
+ )
310
+
311
+ expect ( css ( components ) ) . toMatchCss ( `
312
+ @layer components {
313
+ @variants responsive, hover {
314
+ .container {
315
+ width: 100%
316
+ }
317
+ @media (min-width: 400px) {
318
+ .container {
319
+ max-width: 400px
320
+ }
321
+ }
322
+ @media (min-width: 500px) {
323
+ .container {
324
+ max-width: 500px
325
+ }
326
+ }
327
+ }
328
+ }
329
+ ` )
330
+ } )
0 commit comments