Inline result
This commit is contained in:
parent
00dc589c9c
commit
388eb307ca
9
test.js
9
test.js
|
@ -14,7 +14,6 @@ function generatePluginCss(options = {}) {
|
|||
.process('@tailwind utilities;', {
|
||||
from: undefined
|
||||
})
|
||||
.then(result => result.css)
|
||||
}
|
||||
|
||||
expect.extend({
|
||||
|
@ -22,8 +21,8 @@ expect.extend({
|
|||
})
|
||||
|
||||
test('it generates the correct classes with no variants', () => {
|
||||
generatePluginCss().then(css => {
|
||||
expect(css).toMatchCss(`
|
||||
generatePluginCss().then(result => {
|
||||
expect(result.css).toMatchCss(`
|
||||
.test {
|
||||
display: block
|
||||
}
|
||||
|
@ -32,8 +31,8 @@ test('it generates the correct classes with no variants', () => {
|
|||
})
|
||||
|
||||
test('it generates the correct classes with variants', () => {
|
||||
generatePluginCss({ variants: ['hover', 'focus'] }).then(css => {
|
||||
expect(css).toMatchCss(`
|
||||
generatePluginCss({ variants: ['hover', 'focus'] }).then(result => {
|
||||
expect(result.css).toMatchCss(`
|
||||
.test {
|
||||
display: block
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue