From ca8983bf6c726fc54398bfc4e42296dc3db9f105 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 24 Feb 2017 10:43:39 -0800 Subject: [PATCH] Add initial spec for remote modules --- spec/api-ipc-spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/api-ipc-spec.js b/spec/api-ipc-spec.js index 372855619d61..e812eb5fef2a 100644 --- a/spec/api-ipc-spec.js +++ b/spec/api-ipc-spec.js @@ -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'))