-msLogger   = require '../'
+mpLogger   = require '../'
 ms         = require 'message-ports'
 {testCase} = require 'nodeunit'
 

  "connect message sends whole buffer": (test) ->
    test.expect 1

    logger = msLogger 'test'

    logger.info "one"
    logger.info "two"
    logger.info "three"

    req = ms.req 'ipc:///tmp/mslogger/test'
    req { msg: 'connect' }, (res) ->
      test.strictEqual res.messages.length, 3


      test.done()

  "a null config returns a noop logger": (test) ->
    logger = mpLogger 'test', null
    test.doesNotThrow ->
      logger.info "does nothing. goes nowhere."
    test.done()
