diff --git a/index.js b/index.js index d779f42..9d0b16d 100644 --- a/index.js +++ b/index.js @@ -18,10 +18,6 @@ function getLogger(namespace){ logger[level] = makeLogLevel(level); }); - logger.destroy = function(){ - logger.removeAllListeners(); - }; - return logger; } diff --git a/package.json b/package.json index 5316095..84851d5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Global logging utility", "main": "index.js", "scripts": { - "test": "lab -cv" + "test": "lab -cv --globals store@sparkles" }, "repository": { "type": "git", @@ -24,7 +24,7 @@ }, "homepage": "https://github.com/phated/glogg", "dependencies": { - "sparkles": "git://github.com/phated/sparkles" + "sparkles": "^1.0.0" }, "devDependencies": { "code": "^1.2.1", diff --git a/test/index.js b/test/index.js index f2a9bae..71a4dc7 100644 --- a/test/index.js +++ b/test/index.js @@ -22,9 +22,7 @@ describe('glogg', function(){ }); afterEach(function(done){ - expect(global['glogg-test']).to.exist(); - logger.destroy(); - expect(global['glogg-test']).to.not.exist(); + logger.remove(); done(); });