From 06870e50813b39424cbe8d68a7ae7dfbb55a4ae7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 1 May 2019 20:01:36 +0100 Subject: [PATCH] No need to return generatePluginCss --- .../2019-04-29-testing-tailwindcss-plugins-with-jest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_posts/2019-04-29-testing-tailwindcss-plugins-with-jest.md b/source/_posts/2019-04-29-testing-tailwindcss-plugins-with-jest.md index 0f451987..f2af29ce 100644 --- a/source/_posts/2019-04-29-testing-tailwindcss-plugins-with-jest.md +++ b/source/_posts/2019-04-29-testing-tailwindcss-plugins-with-jest.md @@ -54,7 +54,7 @@ We do this by generating the plugin’s CSS, and asserting that it matches the e ```js test('it generates the list reset class', () => { - return generatePluginCss().then(css => { + generatePluginCss().then(css => { expect(css).toMatchCss(` .list-reset { list-style: none; @@ -162,7 +162,7 @@ Now we can add another test that generates the variant classes too, to ensure th ```js test('it generates the list reset class with variants', () => { - return generatePluginCss({ variants: ['hover', 'focus'] }).then(css => { + generatePluginCss({ variants: ['hover', 'focus'] }).then(css => { expect(css).toMatchCss(` .list-reset { list-style: none;