mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: TTY only has writeBuffer(), not write()
This test is only passing because it's skipped normally.
This commit is contained in:
1 parent
3149d2f7dc
commit
4de274cbee
1 file changed
+2
-6
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user