You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
419 B

var browserify = require('../');
var test = require('tap').test;
test('standalone bundle close event', {timeout: 1000}, function (t) {
t.plan(1);
var ended = false;
var b = browserify(__dirname + '/standalone/main.js', {
standalone: 'stand-test'
});
var r = b.bundle();
r.resume();
r.on('end', function() {
t.ok(!ended);
ended = true;
t.end();
});
});