refactor: init cypress-cucumber-preprocessor install.
This commit is contained in:
33
node_modules/browser-pack/test/empty.js
generated
vendored
Normal file
33
node_modules/browser-pack/test/empty.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
var test = require('tap').test;
|
||||
var pack = require('../');
|
||||
var vm = require('vm');
|
||||
|
||||
test('empty', function (t) {
|
||||
t.plan(1);
|
||||
|
||||
var p = pack();
|
||||
var src = '';
|
||||
p.on('data', function (buf) { src += buf });
|
||||
p.on('end', function () {
|
||||
t.doesNotThrow(function() {
|
||||
vm.runInNewContext(src, {});
|
||||
});
|
||||
});
|
||||
|
||||
p.end();
|
||||
});
|
||||
|
||||
test('empty with standalone', function (t) {
|
||||
t.plan(1);
|
||||
|
||||
var p = pack({standalone: 'ABC'});
|
||||
var src = '';
|
||||
p.on('data', function (buf) { src += buf });
|
||||
p.on('end', function () {
|
||||
t.doesNotThrow(function() {
|
||||
vm.runInNewContext(src, {});
|
||||
});
|
||||
});
|
||||
|
||||
p.end();
|
||||
});
|
Reference in New Issue
Block a user