first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

22
build/node_modules/browserify/test/catch.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var browserify = require('../');
var test = require('tap').test;
test('catch pipeline errors with a callback', function (t) {
t.plan(2);
var b = browserify(__dirname + '/catch/main.js');
b.bundle(function (err, src) {
t.ok(err);
t.ok(/no_such_file/.test(err));
});
});
test('catch pipeline errors with an event', function (t) {
t.plan(2);
var b = browserify(__dirname + '/catch/main.js').bundle();
b.on('error', function (err) {
t.ok(err);
t.ok(/no_such_file/.test(err));
});
});