@@ -220,6 +220,8 @@ run({
220
220
{ code : `tv({ base: 'bottom-1 top-1', variants: { size: { small: 'text-sm px-2 py-1', medium: 'text-base px-4 py-2' } } })` , options : [ { unoFunctions : [ 'tv' ] } ] } ,
221
221
// eslint-disable-next-line no-template-curly-in-string
222
222
'clsx(`pl1 pr1 ${more}`, test ? `ml-1 mr-1 ${more}` : `left-1 right-1 ${more}`, test && `bottom-1 top-1 ${more}`, { [`bottom-1 top-1 ${more}`]: test })' ,
223
+ `clsx(['ml-1 mr-1'])` ,
224
+ `clsx(['flex flex-col'], ['bottom-1 top-1'])` ,
223
225
`notSorted('mr-1 ml-1')` ,
224
226
] ,
225
227
invalid : [
@@ -349,6 +351,34 @@ run({
349
351
{ messageId : 'invalid-order' } ,
350
352
] ,
351
353
} ,
354
+ {
355
+ code : `clsx(['mr-1 ml-1'])` ,
356
+ output : output => expect ( output ) . toMatchInlineSnapshot ( `
357
+ "clsx(['ml-1 mr-1'])"
358
+ ` ) ,
359
+ errors : [
360
+ { messageId : 'invalid-order' } ,
361
+ ] ,
362
+ } ,
363
+ {
364
+ code : `clsx(['mr-1 ml-1'], ['top-1 bottom-1'])` ,
365
+ output : output => expect ( output ) . toMatchInlineSnapshot ( `
366
+ "clsx(['ml-1 mr-1'], ['bottom-1 top-1'])"
367
+ ` ) ,
368
+ errors : [
369
+ { messageId : 'invalid-order' } ,
370
+ { messageId : 'invalid-order' } ,
371
+ ] ,
372
+ } ,
373
+ {
374
+ code : `clsx(['flex-col flex'], className)` ,
375
+ output : output => expect ( output ) . toMatchInlineSnapshot ( `
376
+ "clsx(['flex flex-col'], className)"
377
+ ` ) ,
378
+ errors : [
379
+ { messageId : 'invalid-order' } ,
380
+ ] ,
381
+ } ,
352
382
] ,
353
383
} )
354
384
0 commit comments