refactor(Cypress): add nodemodules

This commit is contained in:
2021-09-02 17:18:41 +02:00
parent 1aa57bbd0a
commit bc6e1bc12e
4238 changed files with 340975 additions and 8 deletions

40
node_modules/stack-chain/test/simple/order.js generated vendored Normal file
View File

@@ -0,0 +1,40 @@
var test = require("tap").test;
var chain = require('../../');
var produce = require('../produce.js');
test("modifier execution order", function (t) {
var filter = function (error, frames) {
if (error.test) {
frames.splice(0, 1);
}
return frames;
};
var modify = function (error, frames) {
if (error.test) {
frames.splice(1, 0, "wonder land");
}
return frames;
};
chain.filter.attach(filter);
chain.extend.attach(modify);
chain.extend.attach(modify);
t.equal(produce.real(4), produce.fake([
'Error: trace',
' at wonder land',
' at wonder land',
' at deepStack ({where}:5:5)',
' at deepStack ({where}:7:5)'
]));
chain.filter.deattach(filter);
chain.extend.deattach(modify);
chain.extend.deattach(modify);
t.end();
});