@@ -1796,7 +1796,6 @@ test('variants can be defined as a function', () => {
17961796 rotate : [ 'responsive' , 'focus' ] ,
17971797 cursor : [ 'focus' , 'checked' , 'hover' ] ,
17981798 } ,
1799- plugins : userConfig . plugins ,
18001799 } )
18011800} )
18021801
@@ -1831,6 +1830,12 @@ test('core plugin configurations stack', () => {
18311830 corePlugins : { display : false } ,
18321831 }
18331832
1833+ const otherConfig = {
1834+ corePlugins : ( { corePlugins } ) => {
1835+ return [ ...corePlugins , 'margin' ]
1836+ } ,
1837+ }
1838+
18341839 const defaultConfig = {
18351840 prefix : '' ,
18361841 important : false ,
@@ -1840,14 +1845,14 @@ test('core plugin configurations stack', () => {
18401845 corePlugins : [ 'float' , 'display' , 'padding' ] ,
18411846 }
18421847
1843- const result = resolveConfig ( [ userConfig , defaultConfig ] )
1848+ const result = resolveConfig ( [ userConfig , otherConfig , defaultConfig ] )
18441849
18451850 expect ( result ) . toMatchObject ( {
18461851 prefix : '' ,
18471852 important : false ,
18481853 separator : ':' ,
18491854 theme : { } ,
18501855 variants : { } ,
1851- corePlugins : [ 'float' , 'padding' ] ,
1856+ corePlugins : [ 'float' , 'padding' , 'margin' ] ,
18521857 } )
18531858} )
0 commit comments