Merge pull request #36 from strongloop/feature/fix-CI-build

test: fix failures on CI
This commit is contained in:
Miroslav Bajtoš 2014-08-19 19:37:39 +02:00
commit 6c26e99ab9
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,10 @@ var sandbox = require('./helpers/sandbox');
var vm = require('vm');
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) {
var appDir = path.resolve(__dirname, './fixtures/browser-app');
@ -68,6 +72,9 @@ function createBrowserLikeContext() {
// used by `debug` module
document: { documentElement: { style: {} } },
// used by `debug` module
navigator: { userAgent: 'sandbox' },
// used by crypto-browserify & friends
Int32Array: Int32Array,
DataView: DataView,