switched out assertion library with should.js... I really should have written my own baby util library since that was the third time I've done that...

This commit is contained in:
Spencer Alger
2013-12-23 15:33:53 -07:00
parent 3d0b2fde4e
commit 2b3734a081
32 changed files with 828 additions and 987 deletions

View File

@ -1,6 +1,7 @@
var Log = require('../../src/lib/log');
var ConsoleLogger = require('../../src/lib/loggers/console');
var sinon = require('sinon');
var expect = require('expect.js');
var parentLog;
beforeEach(function () {
@ -33,7 +34,7 @@ describe('Console Logger', function () {
var logger = makeLogger();
logger.onWarning('message');
console.log.callCount.should.eql(1);
expect(console.log.callCount).to.be(1);
console.warn = _warning;
console.log.restore();