all tests converted to mocha

This commit is contained in:
Gareth Jones
2013-08-29 08:49:42 +10:00
parent fe1f1228ca
commit 46ad57b4e0
6 changed files with 466 additions and 389 deletions

View File

@@ -1,5 +1,6 @@
"use strict";
var should = require('should')
, levels = require('../lib/levels')
, Logger = require('../lib/logger');
describe('../lib/logger', function() {
@@ -42,7 +43,7 @@ describe('../lib/logger', function() {
it('should send log events to the dispatch delegate', function() {
logger.debug("interesting thing");
event.should.have.property('category').equal('exciting category');
event.should.have.property('level').equal('debug');
event.should.have.property('level').equal(levels.DEBUG);
event.should.have.property('data').eql(["interesting thing"]);
event.should.have.property('startTime');
});