Permalink
Browse files

test: TTY only has writeBuffer(), not write()

This test is only passing because it's skipped normally.
  • Loading branch information...
1 parent 3149d2f commit 4de274cbee902cc17608ca9507ffd45fab2b706e @isaacs isaacs committed Dec 1, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 test/simple/test-tty-wrap.js
@@ -33,20 +33,16 @@ if (isTTY(1) == false) {
var handle = new TTY(1);
var callbacks = 0;
-var req1 = handle.write(Buffer('hello world\n'));
+var req1 = handle.writeBuffer(Buffer('hello world\n'));
req1.oncomplete = function() {
callbacks++;
};
-var req2 = handle.write(Buffer('hello world\n'));
+var req2 = handle.writeBuffer(Buffer('hello world\n'));
req2.oncomplete = function() {
callbacks++;
};
-handle.close();
-
process.on('exit', function() {
assert.equal(2, callbacks);
});
-
-

0 comments on commit 4de274c

Please sign in to comment.