Test that calling regular module succeeds

This commit is contained in:
Kevin Sawicki 2016-05-23 13:09:39 -07:00
parent 6ac0151e65
commit 4a41311409
4 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@
<meta charset="utf-8">
<title></title>
<script>
require('foo').bar()
require('electron').ipcRenderer.send('answer')
</script>
</head>

View file

@ -0,0 +1 @@
exports.bar = function () {}

View file

@ -0,0 +1,4 @@
{
"name": "foo",
"main": "index.js"
}

View file

@ -230,7 +230,7 @@ describe('node feature', function () {
})
})
describe.only('require("electron")', function () {
describe('require("electron")', function () {
let window = null
beforeEach(function () {