@@ -189,36 +189,7 @@ test('it wraps the output in a responsive at-rule if responsive is included as a
189
189
} )
190
190
} )
191
191
192
- test ( 'variants are generated in a fixed order regardless of the order specified by default' , ( ) => {
193
- const input = `
194
- @variants focus, active, hover, group-hover {
195
- .banana { color: yellow; }
196
- .chocolate { color: brown; }
197
- }
198
- `
199
-
200
- const output = `
201
- .banana { color: yellow; }
202
- .chocolate { color: brown; }
203
- .group:hover .group-hover\\:banana { color: yellow; }
204
- .group:hover .group-hover\\:chocolate { color: brown; }
205
- .hover\\:banana:hover { color: yellow; }
206
- .hover\\:chocolate:hover { color: brown; }
207
- .focus\\:banana:focus { color: yellow; }
208
- .focus\\:chocolate:focus { color: brown; }
209
- .active\\:banana:active { color: yellow; }
210
- .active\\:chocolate:active { color: brown; }
211
- `
212
-
213
- return run ( input , {
214
- ...config ,
215
- } ) . then ( result => {
216
- expect ( result . css ) . toMatchCss ( output )
217
- expect ( result . warnings ( ) . length ) . toBe ( 0 )
218
- } )
219
- } )
220
-
221
- test ( 'if plugin variants are enabled, variants are generated in the order specified' , ( ) => {
192
+ test ( 'variants are generated in the order specified' , ( ) => {
222
193
const input = `
223
194
@variants focus, active, hover {
224
195
.banana { color: yellow; }
@@ -239,14 +210,13 @@ test('if plugin variants are enabled, variants are generated in the order specif
239
210
240
211
return run ( input , {
241
212
...config ,
242
- experiments : { pluginVariants : true } ,
243
213
} ) . then ( result => {
244
214
expect ( result . css ) . toMatchCss ( output )
245
215
expect ( result . warnings ( ) . length ) . toBe ( 0 )
246
216
} )
247
217
} )
248
218
249
- test ( 'if plugin variants are enabled, plugin variants can modify rules using the raw PostCSS API' , ( ) => {
219
+ test ( 'plugin variants can modify rules using the raw PostCSS API' , ( ) => {
250
220
const input = `
251
221
@variants important {
252
222
.banana { color: yellow; }
@@ -263,7 +233,6 @@ test('if plugin variants are enabled, plugin variants can modify rules using the
263
233
264
234
return run ( input , {
265
235
...config ,
266
- experiments : { pluginVariants : true } ,
267
236
plugins : [
268
237
...config . plugins ,
269
238
function ( { addVariant } ) {
@@ -283,7 +252,7 @@ test('if plugin variants are enabled, plugin variants can modify rules using the
283
252
} )
284
253
} )
285
254
286
- test ( 'if plugin variants are enabled, plugin variants can modify selectors with a simplified API' , ( ) => {
255
+ test ( 'plugin variants can modify selectors with a simplified API' , ( ) => {
287
256
const input = `
288
257
@variants first-child {
289
258
.banana { color: yellow; }
@@ -300,7 +269,6 @@ test('if plugin variants are enabled, plugin variants can modify selectors with
300
269
301
270
return run ( input , {
302
271
...config ,
303
- experiments : { pluginVariants : true } ,
304
272
plugins : [
305
273
...config . plugins ,
306
274
function ( { addVariant } ) {
@@ -317,7 +285,7 @@ test('if plugin variants are enabled, plugin variants can modify selectors with
317
285
} )
318
286
} )
319
287
320
- test ( 'if plugin variants are enabled, plugin variants can wrap rules in another at-rule using the raw PostCSS API' , ( ) => {
288
+ test ( 'plugin variants can wrap rules in another at-rule using the raw PostCSS API' , ( ) => {
321
289
const input = `
322
290
@variants supports-grid {
323
291
.banana { color: yellow; }
@@ -336,7 +304,6 @@ test('if plugin variants are enabled, plugin variants can wrap rules in another
336
304
337
305
return run ( input , {
338
306
...config ,
339
- experiments : { pluginVariants : true } ,
340
307
plugins : [
341
308
...config . plugins ,
342
309
function ( { addVariant } ) {
0 commit comments