You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
471 B
JavaScript
20 lines
471 B
JavaScript
7 years ago
|
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');
|
||
|
b.on('_ready', function() {
|
||
|
var r = b.bundle({standalone: 'stand-test'});
|
||
|
r.resume();
|
||
|
r.on('end', function() {
|
||
|
t.ok(!ended);
|
||
|
ended = true;
|
||
|
t.end();
|
||
|
});
|
||
|
});
|
||
|
});
|