dance around error checking with this one weird trick

This commit is contained in:
Zeke Sikelianos 2016-03-28 16:31:06 -07:00 committed by Kevin Sawicki
parent 5e4696f4a7
commit c5f70c8d99
3 changed files with 14 additions and 10 deletions

View file

@ -60,7 +60,7 @@ describe('ipc module', function () {
it('can construct an object from its member', function () {
var call = remote.require(path.join(fixtures, 'module', 'call.js'))
var obj = new call.constructor
var obj = new call.constructor // eslint-disable-line
assert.equal(obj.test, 'test')
})
@ -68,7 +68,7 @@ describe('ipc module', function () {
var remoteFunctions = remote.require(path.join(fixtures, 'module', 'function.js'))
assert.equal(remoteFunctions.aFunction(), 1127)
remoteFunctions.aFunction = function () { return 1234; }
remoteFunctions.aFunction = function () { return 1234 }
assert.equal(remoteFunctions.aFunction(), 1234)
assert.equal(delete remoteFunctions.aFunction, true)
@ -106,7 +106,7 @@ describe('ipc module', function () {
it('can return same object with different getters', function () {
var contents1 = remote.getCurrentWindow().webContents
var contents2 = remote.getCurrentWebContents()
assert(contents1 == contents2)
assert(contents1 === contents2)
})
})