anylogger-debug
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -53,10 +53,3 @@ var expect = require('chai').expect | ||
it('calls anylogger.create when a new logger named "test" is created', function(){ | ||
sandbox.spy(anylogger, 'create') | ||
expect(anylogger.create.callCount).to.equal(0) | ||
anylogger('test') | ||
expect(anylogger.create.callCount).to.equal(1) | ||
}) | ||
it('Calls anylogger.new when a new logger named "test" is created', function(){ | ||
it('calls anylogger.new when a new logger named "test" is created', function(){ | ||
sandbox.spy(anylogger, 'new') | ||
@@ -68,3 +61,3 @@ expect(anylogger.new.callCount).to.equal(0) | ||
it('Calls anylogger.ext when a new logger named "test" is created', function(){ | ||
it('calls anylogger.ext when a new logger named "test" is created', function(){ | ||
sandbox.spy(anylogger, 'ext') | ||
@@ -76,12 +69,12 @@ expect(anylogger.ext.callCount).to.equal(0) | ||
it('does not call anylogger.create on subsequent calls with the same name', function(){ | ||
sandbox.spy(anylogger, 'create') | ||
expect(anylogger.create.callCount).to.equal(0) | ||
it('does not call anylogger.new on subsequent calls with the same name', function(){ | ||
sandbox.spy(anylogger, 'new') | ||
expect(anylogger.new.callCount).to.equal(0) | ||
anylogger('test') | ||
expect(anylogger.create.callCount).to.equal(1) | ||
expect(anylogger.new.callCount).to.equal(1) | ||
anylogger('test') | ||
expect(anylogger.create.callCount).to.equal(1) | ||
expect(anylogger.new.callCount).to.equal(1) | ||
}) | ||
it('calls anylogger.create when a new logger named "toString" is created', function(){ | ||
it('calls anylogger.new when a new logger named "toString" is created', function(){ | ||
sandbox.spy(anylogger, 'new') | ||
@@ -93,9 +86,9 @@ expect(anylogger.new.callCount).to.equal(0) | ||
it('does not call anylogger.create on subsequent calls with "toString" as argument', function(){ | ||
sandbox.spy(anylogger, 'create') | ||
expect(anylogger.create.callCount).to.equal(0) | ||
it('does not call anylogger.new on subsequent calls with "toString" as argument', function(){ | ||
sandbox.spy(anylogger, 'new') | ||
expect(anylogger.new.callCount).to.equal(0) | ||
anylogger('toString') | ||
expect(anylogger.create.callCount).to.equal(1) | ||
expect(anylogger.new.callCount).to.equal(1) | ||
anylogger('toString') | ||
expect(anylogger.create.callCount).to.equal(1) | ||
expect(anylogger.new.callCount).to.equal(1) | ||
}) | ||
@@ -102,0 +95,0 @@ |
{ | ||
"name": "anylogger-debug", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Anylogger adapter for debug", | ||
@@ -27,7 +27,7 @@ "main": "anylogger-debug.js", | ||
"dependencies": { | ||
"anylogger": "^0.11.0", | ||
"anylogger": "^0.14.0", | ||
"debug": "^4.1.1" | ||
}, | ||
"peerDependencies": { | ||
"anylogger": "^0.11.0", | ||
"anylogger": "^0.14.0", | ||
"debug": "^4.1.1" | ||
@@ -34,0 +34,0 @@ }, |
11320
182
+ Addedanylogger@0.14.0(transitive)
- Removedanylogger@0.11.0(transitive)
Updatedanylogger@^0.14.0