remote.require should return the same object for the same module.
This is required to use jasmine to test methods of the remote module.
This commit is contained in:
parent
2f9c30dd50
commit
620c9fa109
2 changed files with 15 additions and 1 deletions
9
spec/api/ipc.coffee
Normal file
9
spec/api/ipc.coffee
Normal file
|
@ -0,0 +1,9 @@
|
|||
assert = require 'assert'
|
||||
remote = require 'remote'
|
||||
|
||||
describe 'ipc', ->
|
||||
describe 'remote.require', ->
|
||||
it 'should returns same object for the same module', ->
|
||||
dialog1 = remote.require 'dialog'
|
||||
dialog2 = remote.require 'dialog'
|
||||
assert.equal dialog1, dialog2
|
Loading…
Add table
Add a link
Reference in a new issue