Comparing version 1.6.1 to 1.6.2
@@ -6,3 +6,3 @@ | ||
Fireproof.stats = {}; | ||
Fireproof.stats = { }; | ||
@@ -24,4 +24,12 @@ /** | ||
}; | ||
/** | ||
* Resets the count of Firebase listeners back to 0. | ||
* @method Fireproof.stats.reset | ||
* @method Fireproof.stats.reset | ||
*/ | ||
Fireproof.stats.resetListeners = function() { | ||
Fireproof.stats.listeners = {}; | ||
}; | ||
@@ -158,3 +166,4 @@ | ||
Fireproof.stats.reset(); | ||
Fireproof.stats.resetListeners(); | ||
}; |
{ | ||
"name": "fireproof", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Promises for Firebase objects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,5 +25,7 @@ | ||
Fireproof.stats.reset(); | ||
Fireproof.stats.resetListeners(); | ||
expect(Fireproof.stats.events.read.length).to.equal(0); | ||
expect(Fireproof.stats.events.write.length).to.equal(0); | ||
expect(Fireproof.stats.events.update.length).to.equal(0); | ||
expect(Object.keys(Fireproof.stats.listeners).length).to.equal(0); | ||
@@ -92,5 +94,2 @@ }); | ||
console.log(pathStats); | ||
console.log(correctedPathStats); | ||
expect(correctedPathStats).to.deep.equal({ | ||
@@ -97,0 +96,0 @@ |
51984
1452