Fix existing tests
This commit is contained in:
parent
6f66173812
commit
068aecad52
8
test.js
8
test.js
|
@ -32,7 +32,7 @@ test('it generates the correct classes with no variants', () => {
|
||||||
return generatePluginCss().then(css => {
|
return generatePluginCss().then(css => {
|
||||||
expect(css).toMatchCss(`
|
expect(css).toMatchCss(`
|
||||||
.test {
|
.test {
|
||||||
display: block;
|
display: block
|
||||||
}
|
}
|
||||||
`)
|
`)
|
||||||
})
|
})
|
||||||
|
@ -42,15 +42,15 @@ test('it generates the correct classes with variants', () => {
|
||||||
return generatePluginCss({ variants: ['hover', 'focus'] }).then(css => {
|
return generatePluginCss({ variants: ['hover', 'focus'] }).then(css => {
|
||||||
expect(css).toMatchCss(`
|
expect(css).toMatchCss(`
|
||||||
.test {
|
.test {
|
||||||
display: block;
|
display: block
|
||||||
}
|
}
|
||||||
|
|
||||||
.hover\\:test:hover {
|
.hover\\:test:hover {
|
||||||
display: block;
|
display: block
|
||||||
}
|
}
|
||||||
|
|
||||||
.focus\\:test:focus {
|
.focus\\:test:focus {
|
||||||
display: block;
|
display: block
|
||||||
}
|
}
|
||||||
`)
|
`)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue