Skip to content
Snippets Groups Projects
Commit 4fa77fb3 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

🚨 Tests: fixed failing tests

parent 7490415b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,9 +14,16 @@ MockConfig.prototype.get = function(key) {
root = root[path[i]];
if(root === null || root === undefined) return root;
}
return root;
};
 
MockConfig.prototype.getBool = function(key) {
var val = this.get(key);
if (!val) return false;
return !!JSON.parse(val);
};
 
 
module.exports = function(hash) {
Loading
Loading
Loading
Loading
@@ -23,6 +23,9 @@ describe('gitter-stats', function() {
return 'UA-45918290-3';
}
},
getBool: function() {
return false;
},
events: {
on: function() {}
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment