Skip to content

Commit

Permalink
test: repro #5842
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 26, 2018
1 parent b510cb9 commit a5b3899
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

var Document = require('../lib/browserDocument');
var Schema = require('../lib/schema');
var execSync = require('child_process').execSync;

/**
* Test.
*/
describe('browser', function() {
it('require() works with no other require calls (gh-5842)', function(done) {
execSync('node --eval "require(\'./lib/browserDocument\')"');
done();
});

it('document works (gh-4987)', function(done) {
var schema = new Schema({
name: {type: String, required: true},
Expand Down

0 comments on commit a5b3899

Please sign in to comment.