refactor: init cypress-cucumber-preprocessor install.

This commit is contained in:
2021-09-02 17:02:45 +02:00
parent 89ec2d42ac
commit 1aa57bbd0a
5000 changed files with 408119 additions and 231 deletions

43
node_modules/browserify/test/entry.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
var browserify = require('../');
var vm = require('vm');
var path = require('path');
var test = require('tap').test;
test('entry', function (t) {
t.plan(3);
var b = browserify(__dirname + '/entry/main.js');
b.on('dep', function(row) {
if (row.entry) t.equal(row.file, path.join(__dirname, 'entry/main.js'));
});
b.bundle(function (err, src) {
var c = {
done : function (one, two) {
t.equal(one, 1);
t.equal(two, 2);
t.end();
}
};
vm.runInNewContext(src, c);
});
});
test('entry via add', function (t) {
t.plan(3);
var b = browserify();
b.add(__dirname + '/entry/main.js');
b.on('dep', function(row) {
if (row.entry) t.equal(row.file, path.join(__dirname, 'entry/main.js'));
});
b.bundle(function (err, src) {
var c = {
done : function (one, two) {
t.equal(one, 1);
t.equal(two, 2);
t.end();
}
};
vm.runInNewContext(src, c);
});
});