Skip to content
Browse files

slightly more realistic tests

  • Loading branch information...
1 parent 163bf78 commit d45b6a92d977be1cf49a6cdfd90abeeb0d5f4971 Thorsten Lorenz committed Jan 19, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/readdirp-stream.js
View
6 test/readdirp-stream.js
@@ -178,7 +178,7 @@ test('\napi separately', function (t) {
, nonfatalError = new Error('nonfatal!')
, processedData = 'some data'
- api.stream
+ var stream = api.stream
.on('warn', function (err) {
t.notOk(destroyed, 'emits warning until destroyed');
})
@@ -199,9 +199,9 @@ test('\napi separately', function (t) {
process.nextTick(function () {
destroyed = true
- api.stream.destroy()
+ stream.destroy()
- t.notOk(api.stream.readable, 'stream is no longer readable after it is destroyed')
+ t.notOk(stream.readable, 'stream is no longer readable after it is destroyed')
api.processEntry(processedData);
api.handleError(nonfatalError);

0 comments on commit d45b6a9

Please sign in to comment.
Something went wrong with that request. Please try again.