eradicate all per-file eslint globals
This commit is contained in:
parent
aadc0bee25
commit
7c58f7fb02
15 changed files with 17 additions and 33 deletions
|
@ -1,5 +1,3 @@
|
|||
/* globals fetch */
|
||||
|
||||
const assert = require('assert')
|
||||
const path = require('path')
|
||||
const webFrame = require('electron').webFrame
|
||||
|
@ -10,7 +8,7 @@ describe('webFrame module', function () {
|
|||
it('supports fetch api', function (done) {
|
||||
webFrame.registerURLSchemeAsPrivileged('file')
|
||||
var url = 'file://' + fixtures + '/assets/logo.png'
|
||||
fetch(url).then(function (response) {
|
||||
window.fetch(url).then(function (response) {
|
||||
assert(response.ok)
|
||||
done()
|
||||
}).catch(function (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue