Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Add eslint no-exclusive-tests rule - Closes #893 #993

Merged
merged 2 commits into from
Nov 21, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"plugin:react/recommended"
],
"plugins": [
"import"
"import",
"mocha"
],
"globals": {
"describe": true,
Expand All @@ -20,6 +21,7 @@
"node": true
},
"rules": {
"mocha/no-exclusive-tests": "error",
"func-names": "off",
"global-require": "off",
"new-cap": ["error", {
Expand Down Expand Up @@ -48,5 +50,10 @@
],
"linebreak-style": 0,
"no-param-reassign": "off"
},
"settings": {
"mocha/additionalTestFunctions": [
"describeModule"
]
}
}
2 changes: 1 addition & 1 deletion app/src/modules/autoUpdater.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from 'chai'; // eslint-disable-line import/no-extraneous-depen
import sinon, { spy } from 'sinon'; // eslint-disable-line import/no-extraneous-dependencies
import autoUpdater from './autoUpdater';

describe.only('autoUpdater', () => {
describe('autoUpdater', () => {
const version = '1.2.3';
let params;
let callbacks;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"eslint-loader": "1.9.0",
"eslint-plugin-html": "3.2.2",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-mocha": "4.11.0",
"eslint-plugin-react": "7.4.0",
"exports-loader": "0.6.4",
"extract-text-webpack-plugin": "3.0.0",
Expand Down