Fixes test syles

This commit is contained in:
Sharmila
2017-10-18 13:34:15 -07:00
parent 2ab0e61858
commit 6fbc47256e
2 changed files with 4 additions and 4 deletions

View File

@@ -20,8 +20,8 @@ Object.keys(files).forEach(( // eslint-disable-line function-paren-newline
t.plan(2);
// scan plugins for react and fail if it is found
const hasReactPlugin = Object.prototype.hasOwnProperty.call(config, 'plugins') &&
config.plugins.indexOf('react') !== -1;
const hasReactPlugin = Object.prototype.hasOwnProperty.call(config, 'plugins')
&& config.plugins.indexOf('react') !== -1;
t.notOk(hasReactPlugin, 'there is no react plugin');
// scan rules for react/ and fail if any exist

View File

@@ -22,8 +22,8 @@ Object.keys(files).forEach((name) => {
t.plan(2);
// scan plugins for react and fail if it is found
const hasReactPlugin = Object.prototype.hasOwnProperty.call(config, 'plugins') &&
config.plugins.indexOf('react') !== -1;
const hasReactPlugin = Object.prototype.hasOwnProperty.call(config, 'plugins')
&& config.plugins.indexOf('react') !== -1;
t.notOk(hasReactPlugin, 'there is no react plugin');
// scan rules for react/ and fail if any exist