nesting-doll
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -36,3 +36,3 @@ 'use strict'; | ||
if (!current._active) { | ||
if (!current || !current._active) { | ||
return null; | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "nesting-doll", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Nested context library using CLS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -118,2 +118,9 @@ /*jshint expr: true*/ | ||
it('returns null if there is no current doll', function (done) { | ||
nestingDoll._namespace.run(function () { | ||
expect(nestingDoll.currentDoll()).to.be.null; | ||
done(); | ||
}); | ||
}); | ||
it('returns null if current doll is not active', function (done) { | ||
@@ -120,0 +127,0 @@ var doll = nestingDoll.nest('foo'); |
26121
659