Add initial spec for remote modules

This commit is contained in:
Kevin Sawicki 2017-02-24 10:43:39 -08:00
parent e8a79cb88d
commit ca8983bf6c

View file

@ -154,6 +154,15 @@ describe('ipc module', function () {
})
})
describe('remote modules', function () {
it('includes browser process modules as properties', function () {
assert.equal(typeof remote.app.getPath, 'function')
assert.equal(typeof remote.webContents.getFocusedWebContents, 'function')
assert.equal(typeof remote.clipboard.readText, 'function')
assert.equal(typeof remote.shell.openExternal, 'function')
})
})
describe('remote object in renderer', function () {
it('can change its properties', function () {
var property = remote.require(path.join(fixtures, 'module', 'property.js'))