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

41
node_modules/browserify/test/crypto_ig.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
var test = require('tap').test;
var spawn = require('child_process').spawn;
var path = require('path');
var fs = require('fs');
var vm = require('vm');
var concat = require('concat-stream');
var temp = require('temp');
temp.track();
var tmpdir = temp.mkdirSync({prefix: 'browserify-test'});
fs.writeFileSync(tmpdir + '/main.js', 'beep(require("crypto"))\n');
if (!ArrayBuffer.isView) ArrayBuffer.isView = function () { return false; };
test('crypto --insertGlobals', function (t) {
t.plan(2);
var bin = __dirname + '/../bin/cmd.js';
var ps = spawn(process.execPath, [ bin, 'main.js', '--ig' ], { cwd : tmpdir });
ps.stderr.pipe(process.stderr, { end : false });
ps.on('exit', function (code) {
t.equal(code, 0);
});
ps.stdout.pipe(concat(function (src) {
var c = {
Int32Array: Int32Array,
ArrayBuffer: ArrayBuffer,
Uint8Array: Uint8Array,
DataView: DataView,
beep : function (c) {
t.equal(typeof c.createHash, 'function');
},
require: function () {}
};
vm.runInNewContext(src.toString('utf8'), c);
}));
});