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;
|
const BrowserWindow = remote.require('electron').BrowserWindow;
|
||||||
|
|
||||||
describe('electron module', function() {
|
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 electron = require('electron');
|
||||||
const clipboard = require('clipboard');
|
const clipboard = require('clipboard');
|
||||||
assert.equal(typeof clipboard, 'object');
|
assert.equal(typeof clipboard, 'object');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue