test-log

Tiny logger for using in tests

test-log

Tiny logger for tests like

it('.waterfall()', function () {
  var log = Log()
 
  async.waterfall([
    function (cb) {
      log('first')
      cb(null, 'one', 'two')
    },
    function (arg1arg2cb) {
      arg1.should.equal('one')
      arg2.should.equal('two')
      log('second')
      cb(null, 'three;')
    },
    function (arg1cb) {
      arg1.should.equal('three')
      log('third')
      cb()
    }
  ], log.fn('done'))
 
  log.should.equal('first second third done')
})

For rational see https://gist.github.com/3656269

Via npm npm install test-log

MIT