Use const for requires

This commit is contained in:
Kevin Sawicki 2016-02-16 16:46:49 -08:00
parent 57f322a818
commit 709661156a
8 changed files with 41 additions and 66 deletions

View file

@ -1,14 +1,10 @@
var BrowserWindow, ChildProcess, app, assert, path, ref, remote;
const assert = require('assert');
const ChildProcess = require('child_process');
const path = require('path');
const remote = require('electron').remote;
assert = require('assert');
ChildProcess = require('child_process');
path = require('path');
remote = require('electron').remote;
ref = remote.require('electron'), app = ref.app, BrowserWindow = ref.BrowserWindow;
const app = remote.require('electron').app;
const BrowserWindow = remote.require('electron').BrowserWindow;
describe('electron module', function() {
it ('can prevent exposing internal modules to require', function(done) {