summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/through/test/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/through/test/index.js')
-rw-r--r--deps/npm/node_modules/through/test/index.js14
1 files changed, 7 insertions, 7 deletions
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()