websocket快速操作工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
237 B

  1. var es = require('../')
  2. exports['handle buffer'] = function (t) {
  3. es.stringify().on('data', function (d) {
  4. t.equal(d.trim(), JSON.stringify('HELLO'))
  5. t.end()
  6. }).write(new Buffer('HELLO'))
  7. }
  8. require('./helper')(module)