summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/through/test
diff options
context:
space:
mode:
authorclaudiahdz <cghr1990@gmail.com>2019-11-18 21:01:39 +0200
committerMyles Borins <mylesborins@google.com>2019-11-20 19:16:47 -0500
commita7c7c703aff362f06ef5d49451a0f79fd289910f (patch)
tree48f9d01b32d55d420f229c4889a5a61178419223 /deps/npm/node_modules/through/test
parenta30a9f8193ddd61dfadc2d5d79784b682027b319 (diff)
downloadandroid-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.tar.gz
android-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.tar.bz2
android-node-v8-a7c7c703aff362f06ef5d49451a0f79fd289910f.zip
deps: upgrade npm to 6.13.1
PR-URL: https://github.com/nodejs/node/pull/30533 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/through/test')
-rw-r--r--deps/npm/node_modules/through/test/async.js2
-rw-r--r--deps/npm/node_modules/through/test/auto-destroy.js1
-rw-r--r--deps/npm/node_modules/through/test/index.js14
3 files changed, 9 insertions, 8 deletions
diff --git a/deps/npm/node_modules/through/test/async.js b/deps/npm/node_modules/through/test/async.js
index f6fc95f4ff..46bdbaebcb 100644
--- a/deps/npm/node_modules/through/test/async.js
+++ b/deps/npm/node_modules/through/test/async.js
@@ -4,7 +4,7 @@ var through = require('../')
var tape = require('tape')
tape('simple async example', function (t) {
-
+
var n = 0, expected = [1,2,3,4,5], actual = []
from(expected)
.pipe(through(function(data) {
diff --git a/deps/npm/node_modules/through/test/auto-destroy.js b/deps/npm/node_modules/through/test/auto-destroy.js
index 305fff23d3..9a8fd0006f 100644
--- a/deps/npm/node_modules/through/test/auto-destroy.js
+++ b/deps/npm/node_modules/through/test/auto-destroy.js
@@ -27,3 +27,4 @@ test('end before close', function (assert) {
assert.ok(closed)
assert.end()
})
+
diff --git a/deps/npm/node_modules/through/test/index.js b/deps/npm/node_modules/through/test/index.js
index 1d9523f40e..96da82f97c 100644
--- a/deps/npm/node_modules/through/test/index.js
+++ b/deps/npm/node_modules/through/test/index.js
@@ -15,7 +15,7 @@ function write(array, stream) {
while(array.length)
if(stream.write(array.shift()) === false)
return stream.once('drain', next)
-
+
stream.end()
}
@@ -59,15 +59,15 @@ test('simple defaults', function(assert) {
test('simple functions', function(assert) {
var l = 1000
- , expected = []
+ , expected = []
while(l--) expected.push(l * Math.random())
var t = through(function (data) {
this.emit('data', data*2)
- })
+ })
var s = spec(t).through().pausable()
-
+
read(t, function (err, actual) {
assert.ifError(err)
@@ -85,12 +85,12 @@ test('simple functions', function(assert) {
test('pauses', function(assert) {
var l = 1000
- , expected = []
+ , expected = []
while(l--) expected.push(l) //Math.random())
- var t = through()
-
+ var t = through()
+
var s = spec(t)
.through()
.pausable()