Skip to content

Commit a5b3899

Browse files
committed
test: repro #5842
1 parent b510cb9 commit a5b3899

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/browser.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44

55
var Document = require('../lib/browserDocument');
66
var Schema = require('../lib/schema');
7+
var execSync = require('child_process').execSync;
78

89
/**
910
* Test.
1011
*/
1112
describe('browser', function() {
13+
it('require() works with no other require calls (gh-5842)', function(done) {
14+
execSync('node --eval "require(\'./lib/browserDocument\')"');
15+
done();
16+
});
17+
1218
it('document works (gh-4987)', function(done) {
1319
var schema = new Schema({
1420
name: {type: String, required: true},

0 commit comments

Comments
 (0)