Inline result

This commit is contained in:
Oliver Davies 2019-05-02 01:48:16 +01:00
parent 00dc589c9c
commit 388eb307ca

View file

@ -14,7 +14,6 @@ function generatePluginCss(options = {}) {
.process('@tailwind utilities;', { .process('@tailwind utilities;', {
from: undefined from: undefined
}) })
.then(result => result.css)
} }
expect.extend({ expect.extend({
@ -22,8 +21,8 @@ expect.extend({
}) })
test('it generates the correct classes with no variants', () => { test('it generates the correct classes with no variants', () => {
generatePluginCss().then(css => { generatePluginCss().then(result => {
expect(css).toMatchCss(` expect(result.css).toMatchCss(`
.test { .test {
display: block display: block
} }
@ -32,8 +31,8 @@ test('it generates the correct classes with no variants', () => {
}) })
test('it generates the correct classes with variants', () => { test('it generates the correct classes with variants', () => {
generatePluginCss({ variants: ['hover', 'focus'] }).then(css => { generatePluginCss({ variants: ['hover', 'focus'] }).then(result => {
expect(css).toMatchCss(` expect(result.css).toMatchCss(`
.test { .test {
display: block display: block
} }