1 parent 42b9086 commit f596a86Copy full SHA for f596a86
1 file changed
src/snapshot.js
@@ -15,6 +15,7 @@ function MockDataSnapshot (ref, data, priority) {
15
}
16
17
MockDataSnapshot.prototype.child = function (path) {
18
+ if (typeof path === 'number') path = String(path);
19
// Strip leading or trailing /
20
path = path.replace(/^\/|\/$/g, '');
21
var ref = this.ref.child(path);
0 commit comments