diff --git a/test.js b/test.js index 4911670..6ed76e5 100644 --- a/test.js +++ b/test.js @@ -4,7 +4,7 @@ const plugin = require('./index') const postcss = require('postcss') const tailwindcss = require('tailwindcss') -function generatePluginCss(options = {}) { +function run(options = {}) { return postcss( tailwindcss({ corePlugins: false, @@ -27,7 +27,7 @@ test('it generates the correct classes with no variants', () => { } ` - generatePluginCss().then(result => { + run().then(result => { expect(result.css).toMatchCss(output) }) }) @@ -47,7 +47,7 @@ test('it generates the correct classes with variants', () => { } ` - generatePluginCss({ variants: ['hover', 'focus'] }).then(result => { + run({ variants: ['hover', 'focus'] }).then(result => { expect(result.css).toMatchCss(output) }) })