Opal-Estate-Pro/node_modules/event-stream/test/stringify.js

16 lines
237 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
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)