Skip to content

Commit

Permalink
Have tests pass eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed May 17, 2018
1 parent 3ccb1ce commit 5d80368
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
22 changes: 21 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,25 @@
],
"rules": {
"object-shorthand": "off"
}
},
"overrides": [
{
"files": ["test/*.js"],
"env": {
"browser": true,
"mocha": true
},
"globals": {
"assert": true,
"chai": true,
"FileReaderSync": true
}
},
{
"files": ["test/worker.js"],
"env": {
"worker": true
}
}
]
}
2 changes: 0 additions & 2 deletions test/cjs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global describe, it, require */

var isFunction = require('chai').assert.isFunction
var WHATWGFetch = require('../')

Expand Down
1 change: 0 additions & 1 deletion test/mocha-phantomjs-hooks.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* globals exports */
exports.beforeStart = function(context) {
var originalResourceError = context.page.onResourceError
context.page.onResourceError = function(resErr) {
Expand Down
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ if (self.fetch) {
var slice = Array.prototype.slice

function featureDependent(testOrSuite, condition) {
// eslint-disable-next-line no-invalid-this
(condition ? testOrSuite : testOrSuite.skip).apply(this, slice.call(arguments, 2))
}

Expand Down

0 comments on commit 5d80368

Please sign in to comment.