Permalink
Browse files

fix test for pauses

  • Loading branch information...
1 parent ed5ecf6 commit d983866a783f081765fb97aa026f6911cecf9dbd @dominictarr committed Oct 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/index.js
View
@@ -19,11 +19,11 @@ test("write(data) -> emit('_data', data)", function (d) {
test("emit('pause') -> write(data) === false", function (d) {
var a = null
- assert(d.write(), true)
+ assert.equal(d.write(1), true)
d.emit('pause')
- assert(d.write(), false)
+ assert.equal(d.write(2), false)
d.emit('drain')
- assert(d.write(), true)
+ assert.equal(d.write(3), true)
})
test("_data(data) -> emit('data', data)", function (d) {

0 comments on commit d983866

Please sign in to comment.