Skip to content

Commit 872fe25

Browse files
committed
Fix test
1 parent 66ec10e commit 872fe25

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

__tests__/resolveConfig.test.js

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,28 +1572,22 @@ test('plugin configs take precedence over plugin configs registered by that plug
15721572

15731573
test('plugin theme extensions are added even if user overrides top-level theme config', () => {
15741574
const userConfig = {
1575+
theme: {
1576+
width: {
1577+
'1px': '1px'
1578+
}
1579+
},
15751580
plugins: [
15761581
{
15771582
config: {
15781583
theme: {
1579-
width: {
1580-
'1px': '1px'
1581-
}
1584+
extend: {
1585+
width: {
1586+
'2px': '2px',
1587+
'3px': '3px',
1588+
}
1589+
}
15821590
},
1583-
plugins: [
1584-
{
1585-
config: {
1586-
theme: {
1587-
extend: {
1588-
width: {
1589-
'2px': '2px',
1590-
'3px': '3px',
1591-
}
1592-
}
1593-
},
1594-
},
1595-
},
1596-
],
15971591
},
15981592
handler() {},
15991593
},

0 commit comments

Comments
 (0)