spec: Add test case for #4785
This commit is contained in:
parent
5bc400e31f
commit
152e6af4b4
1 changed files with 5 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue