Update var declarations
This commit is contained in:
parent
54d7c580bd
commit
31028ab636
10 changed files with 110 additions and 181 deletions
|
@ -20,9 +20,8 @@ describe('ipc module', function() {
|
|||
|
||||
describe('remote.require', function() {
|
||||
it('should returns same object for the same module', function() {
|
||||
var dialog1, dialog2;
|
||||
dialog1 = remote.require('electron');
|
||||
dialog2 = remote.require('electron');
|
||||
var dialog1 = remote.require('electron');
|
||||
var dialog2 = remote.require('electron');
|
||||
assert.equal(dialog1, dialog2);
|
||||
});
|
||||
|
||||
|
@ -58,9 +57,8 @@ describe('ipc module', function() {
|
|||
});
|
||||
|
||||
it('can construct an object from its member', function() {
|
||||
var call, obj;
|
||||
call = remote.require(path.join(fixtures, 'module', 'call.js'));
|
||||
obj = new call.constructor;
|
||||
var call = remote.require(path.join(fixtures, 'module', 'call.js'));
|
||||
var obj = new call.constructor;
|
||||
assert.equal(obj.test, 'test');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue