From 388eb307cab8a06b9452c738b5cae1b940380b9e Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 2 May 2019 01:48:16 +0100 Subject: [PATCH] Inline result --- test.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test.js b/test.js index 70b2f86..e51092b 100644 --- a/test.js +++ b/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 }