mirror of
https://github.com/deployphp/action.git
synced 2024-11-23 04:19:02 +00:00
16 lines
237 B
JavaScript
16 lines
237 B
JavaScript
|
|
|
|
|
|
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)
|