Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

This test is only passing because it's skipped normally.
  • Loading branch information...
commit 4de274cbee902cc17608ca9507ffd45fab2b706e 1 parent 3149d2f
@isaacs isaacs authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 test/simple/test-tty-wrap.js
View
8 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);
});
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.