spec: Add test case for #4785

This commit is contained in:
Cheng Zhao 2016-03-14 14:54:45 +09:00
parent 5bc400e31f
commit 152e6af4b4

View file

@ -7,7 +7,11 @@ const app = remote.require('electron').app;
const BrowserWindow = remote.require('electron').BrowserWindow;
describe('electron module', function() {
it ('can prevent exposing internal modules to require', function(done) {
it('allows old style require by default', function() {
require('shell');
});
it('can prevent exposing internal modules to require', function(done) {
const electron = require('electron');
const clipboard = require('clipboard');
assert.equal(typeof clipboard, 'object');