Use let and const

This commit is contained in:
Kevin Sawicki 2016-07-14 09:33:16 -07:00
parent d9e15151fb
commit 34f454a0f5

View file

@ -6,11 +6,11 @@ const path = require('path')
const {remote} = require('electron')
const {BrowserWindow, webContents} = remote
var isCi = remote.getGlobal('isCi')
const isCi = remote.getGlobal('isCi')
describe('webContents module', function () {
var fixtures = path.resolve(__dirname, 'fixtures')
var w = null
const fixtures = path.resolve(__dirname, 'fixtures')
let w
beforeEach(function () {
if (w != null) {
@ -57,7 +57,7 @@ describe('webContents module', function () {
}
it('returns the focused web contents', function (done) {
var specWebContents = remote.getCurrentWebContents()
const specWebContents = remote.getCurrentWebContents()
assert.equal(specWebContents.getId(), webContents.getFocusedWebContents().getId())
specWebContents.on('devtools-opened', function () {