1 var through = require("through")
2 var test = require("tape")
4 var duplex = require("../index")
6 var readable = through()
7 var writable = through(write)
11 var stream = duplex(writable, readable)
17 stream.on("data", ondata)
23 test("emit and write", function(t) {
29 t.equal(written, 1, "should have written once")
30 t.equal(data, 1, "should have recived once")