monolog
Version:
Log with Monolog
22 lines (19 loc) • 581 B
JavaScript
/*global describe,it,beforeEach*/
;
var monolog = require('../index');
var assert = require('assert');
var expect = require('chai').expect;
describe('monolog', function() {
describe('.create', function() {
beforeEach(function() {
this.name = 'test logger';
this.logger = monolog.create(this.name);
});
it('should be an instance of monolog.Logger', function() {
assert(this.logger instanceof monolog.Logger);
});
it('should have the correct name', function() {
assert.equal(this.logger.getName(), this.name);
});
});
});