index.js 668 B

123456789101112131415161718
  1. var assert = require('assert');
  2. var logger = require('..');
  3. describe('noop-logger', function(){
  4. it('should expose methods', function(){
  5. assert.equal('function', typeof logger.debug);
  6. assert.equal('function', typeof logger.info);
  7. assert.equal('function', typeof logger.warn);
  8. assert.equal('function', typeof logger.error);
  9. assert.equal('function', typeof logger.critical);
  10. assert.equal('function', typeof logger.alert);
  11. assert.equal('function', typeof logger.emergency);
  12. assert.equal('function', typeof logger.notice);
  13. assert.equal('function', typeof logger.verbose);
  14. assert.equal('function', typeof logger.fatal);
  15. });
  16. });