Skip to content

Commit f25b092

Browse files
committed
Update test
Still wrong but less wrong
1 parent c184e5b commit f25b092

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

__tests__/processPlugins.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ test("component declarations can optionally ignore 'prefix' option", () => {
11141114
`)
11151115
})
11161116

1117-
test('responsive components are generated with the components at-rule argument', () => {
1117+
test('plugins can create components with variants', () => {
11181118
const { components } = processPlugins(
11191119
[
11201120
function({ addComponents }) {
@@ -1132,7 +1132,7 @@ test('responsive components are generated with the components at-rule argument',
11321132
)
11331133

11341134
expect(css(components)).toMatchCss(`
1135-
@responsive components {
1135+
@responsive {
11361136
@variants {
11371137
.btn-blue {
11381138
background-color: blue
@@ -1142,7 +1142,7 @@ test('responsive components are generated with the components at-rule argument',
11421142
`)
11431143
})
11441144

1145-
test('components can use the array shorthand to add variants', () => {
1145+
test('plugins can use the array shorthand to add variants to components', () => {
11461146
const { components } = processPlugins(
11471147
[
11481148
function({ addComponents }) {
@@ -1152,16 +1152,16 @@ test('components can use the array shorthand to add variants', () => {
11521152
backgroundColor: 'blue',
11531153
},
11541154
},
1155-
['responsive']
1155+
['responsive', 'hover']
11561156
)
11571157
},
11581158
],
11591159
makeConfig()
11601160
)
11611161

11621162
expect(css(components)).toMatchCss(`
1163-
@responsive components {
1164-
@variants {
1163+
@responsive {
1164+
@variants hover {
11651165
.btn-blue {
11661166
background-color: blue
11671167
}

0 commit comments

Comments
 (0)