Files
n8n-nodes-strike/node_modules/event-emitter/test/pipe.js
Martien 5605b9b49a Initial commit: n8n Strike API node
- Add Strike API credentials configuration
- Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates)
- Add comprehensive operation descriptions for all resources
- Include CLAUDE.MD documentation
- Set up build configuration with TypeScript, ESLint, and Prettier

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-10 11:00:38 +01:00

54 lines
972 B
JavaScript

'use strict';
var ee = require('../');
module.exports = function (t, a) {
var x = {}, y = {}, z = {}, count, count2, count3, pipe;
ee(x);
x = Object.create(x);
ee(y);
ee(z);
count = 0;
count2 = 0;
count3 = 0;
x.on('foo', function () {
++count;
});
y.on('foo', function () {
++count2;
});
z.on('foo', function () {
++count3;
});
x.emit('foo');
a(count, 1, "Pre pipe, x");
a(count2, 0, "Pre pipe, y");
a(count3, 0, "Pre pipe, z");
pipe = t(x, y);
x.emit('foo');
a(count, 2, "Post pipe, x");
a(count2, 1, "Post pipe, y");
a(count3, 0, "Post pipe, z");
y.emit('foo');
a(count, 2, "Post pipe, on y, x");
a(count2, 2, "Post pipe, on y, y");
a(count3, 0, "Post pipe, on y, z");
t(x, z);
x.emit('foo');
a(count, 3, "Post pipe z, x");
a(count2, 3, "Post pipe z, y");
a(count3, 1, "Post pipe z, z");
pipe.close();
x.emit('foo');
a(count, 4, "Close pipe y, x");
a(count2, 3, "Close pipe y, y");
a(count3, 2, "Close pipe y, z");
};