Use let and const
This commit is contained in:
parent
d9e15151fb
commit
34f454a0f5
1 changed files with 4 additions and 4 deletions
|
@ -6,11 +6,11 @@ const path = require('path')
|
||||||
const {remote} = require('electron')
|
const {remote} = require('electron')
|
||||||
const {BrowserWindow, webContents} = remote
|
const {BrowserWindow, webContents} = remote
|
||||||
|
|
||||||
var isCi = remote.getGlobal('isCi')
|
const isCi = remote.getGlobal('isCi')
|
||||||
|
|
||||||
describe('webContents module', function () {
|
describe('webContents module', function () {
|
||||||
var fixtures = path.resolve(__dirname, 'fixtures')
|
const fixtures = path.resolve(__dirname, 'fixtures')
|
||||||
var w = null
|
let w
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
if (w != null) {
|
if (w != null) {
|
||||||
|
@ -57,7 +57,7 @@ describe('webContents module', function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
it('returns the focused web contents', function (done) {
|
it('returns the focused web contents', function (done) {
|
||||||
var specWebContents = remote.getCurrentWebContents()
|
const specWebContents = remote.getCurrentWebContents()
|
||||||
assert.equal(specWebContents.getId(), webContents.getFocusedWebContents().getId())
|
assert.equal(specWebContents.getId(), webContents.getFocusedWebContents().getId())
|
||||||
|
|
||||||
specWebContents.on('devtools-opened', function () {
|
specWebContents.on('devtools-opened', function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue