electron/spec/api/ipc.coffee
Cheng Zhao 620c9fa109 remote.require should return the same object for the same module.
This is required to use jasmine to test methods of the remote module.
2013-07-23 11:59:07 +08:00

9 lines
280 B
CoffeeScript

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