Skip to content

Commit

Permalink
Standard JS
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and zcbenz committed Dec 5, 2017
1 parent e535ba4 commit 009459b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/api-browser-window-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ describe('BrowserWindow module', () => {
it('can add and remove multiple session preload script', function () {
var preload = path.join(fixtures, 'module', 'set-global.js')
var preload2 = path.join(fixtures, 'module', 'set-global-2.js')
const mSession = session.defaultSession;
const mSession = session.defaultSession
assert.deepEqual(mSession.getPreloads(), [])
mSession.addPreload(preload)
assert.deepEqual(mSession.getPreloads(), [preload])
Expand All @@ -1040,7 +1040,7 @@ describe('BrowserWindow module', () => {
it('loads the script before other scripts in window including normal preloads', function (done) {
var preload = path.join(fixtures, 'module', 'set-global.js')
var preload2 = path.join(fixtures, 'module', 'set-global-2.js')
const mSession = session.defaultSession;
const mSession = session.defaultSession
ipcMain.once('answer', function (event, test) {
mSession.removePreload(preload2)
assert.equal(test, 'preload2')
Expand Down

0 comments on commit 009459b

Please sign in to comment.