Skip to content

Commit

Permalink
Test case to ensure valid this.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMan99 committed Jan 14, 2018
1 parent 1214c8f commit 3dd11a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var assert = require('assert')
, from = require('./')
, Stream = require('stream').Stream

var random = ['hello', 'goodbye', 1, 2, 3]

Expand All @@ -20,6 +21,10 @@ characters.on('data', function(data) {
assert(i)
})

from(function() {
assert(this instanceof Stream)
})




0 comments on commit 3dd11a1

Please sign in to comment.