Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
15
node_modules/event-stream/test/stringify.js
generated
vendored
Normal file
15
node_modules/event-stream/test/stringify.js
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
|
||||
|
||||
var es = require('../')
|
||||
|
||||
exports['handle buffer'] = function (t) {
|
||||
|
||||
|
||||
es.stringify().on('data', function (d) {
|
||||
t.equal(d.trim(), JSON.stringify('HELLO'))
|
||||
t.end()
|
||||
}).write(new Buffer('HELLO'))
|
||||
|
||||
}
|
||||
require('./helper')(module)
|
Loading…
Add table
Add a link
Reference in a new issue