diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2017-06-07 12:49:00 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2017-06-14 13:12:21 -0700 |
commit | 84f3b8f09f273e5085394468e48b0e330b9cb888 (patch) | |
tree | 709aab970f48c9cf0aa3a30d1bfb5e983a48e875 /test/parallel/test-net-stream.js | |
parent | 3ee37329da7323a86c248a63fe20d40885c7a84a (diff) | |
download | android-node-v8-84f3b8f09f273e5085394468e48b0e330b9cb888.tar.gz android-node-v8-84f3b8f09f273e5085394468e48b0e330b9cb888.tar.bz2 android-node-v8-84f3b8f09f273e5085394468e48b0e330b9cb888.zip |
doc: document and test that methods return this
Also, add tests to ensure they will always return this, and to confirm
they return this when these doc changes are back-ported to earlier
release lines.
PR-URL: https://github.com/nodejs/node/pull/13531
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-net-stream.js')
-rw-r--r-- | test/parallel/test-net-stream.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-net-stream.js b/test/parallel/test-net-stream.js index 15651eff46..1eb984936c 100644 --- a/test/parallel/test-net-stream.js +++ b/test/parallel/test-net-stream.js @@ -61,7 +61,7 @@ const server = net.createServer(function(socket) { }).listen(0, function() { const conn = net.connect(this.address().port); conn.on('data', function(buf) { - conn.pause(); + assert.strictEqual(conn, conn.pause()); setTimeout(function() { conn.destroy(); }, 20); |