3 var ee = require('../');
5 module.exports = function (t, a) {
6 var x = {}, y = {}, z = {}, count, count2, count3, pipe;
16 x.on('foo', function () {
19 y.on('foo', function () {
22 z.on('foo', function () {
27 a(count, 1, "Pre pipe, x");
28 a(count2, 0, "Pre pipe, y");
29 a(count3, 0, "Pre pipe, z");
33 a(count, 2, "Post pipe, x");
34 a(count2, 1, "Post pipe, y");
35 a(count3, 0, "Post pipe, z");
38 a(count, 2, "Post pipe, on y, x");
39 a(count2, 2, "Post pipe, on y, y");
40 a(count3, 0, "Post pipe, on y, z");
44 a(count, 3, "Post pipe z, x");
45 a(count2, 3, "Post pipe z, y");
46 a(count3, 1, "Post pipe z, z");
50 a(count, 4, "Close pipe y, x");
51 a(count2, 3, "Close pipe y, y");
52 a(count3, 2, "Close pipe y, z");