No need to return generatePluginCss

This commit is contained in:
Oliver Davies 2019-05-01 20:01:36 +01:00
parent 8f3110f15a
commit 06870e5081

View file

@ -54,7 +54,7 @@ We do this by generating the plugins 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;