Merge pull request #36 from strongloop/feature/fix-CI-build
test: fix failures on CI
This commit is contained in:
commit
6c26e99ab9
|
@ -7,6 +7,10 @@ var sandbox = require('./helpers/sandbox');
|
||||||
var vm = require('vm');
|
var vm = require('vm');
|
||||||
|
|
||||||
describe('browser support', function() {
|
describe('browser support', function() {
|
||||||
|
this.timeout(60000); // 60s to give browserify enough time to finish
|
||||||
|
|
||||||
|
beforeEach(sandbox.reset);
|
||||||
|
|
||||||
it('has API for bundling and executing boot instructions', function(done) {
|
it('has API for bundling and executing boot instructions', function(done) {
|
||||||
var appDir = path.resolve(__dirname, './fixtures/browser-app');
|
var appDir = path.resolve(__dirname, './fixtures/browser-app');
|
||||||
|
|
||||||
|
@ -68,6 +72,9 @@ function createBrowserLikeContext() {
|
||||||
// used by `debug` module
|
// used by `debug` module
|
||||||
document: { documentElement: { style: {} } },
|
document: { documentElement: { style: {} } },
|
||||||
|
|
||||||
|
// used by `debug` module
|
||||||
|
navigator: { userAgent: 'sandbox' },
|
||||||
|
|
||||||
// used by crypto-browserify & friends
|
// used by crypto-browserify & friends
|
||||||
Int32Array: Int32Array,
|
Int32Array: Int32Array,
|
||||||
DataView: DataView,
|
DataView: DataView,
|
||||||
|
|
Loading…
Reference in New Issue