Skip to content

Commit

Permalink
Upgrade: Update sparkles
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Dec 10, 2018
1 parent 2368fdb commit 68bf895
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ function getLogger(namespace){
logger[level] = makeLogLevel(level);
});

logger.destroy = function(){
logger.removeAllListeners();
};

return logger;
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Global logging utility",
"main": "index.js",
"scripts": {
"test": "lab -cv"
"test": "lab -cv --globals store@sparkles"
},
"repository": {
"type": "git",
Expand All @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down

0 comments on commit 68bf895

Please # to comment.