We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b9086 commit 9eb10b9Copy full SHA for 9eb10b9
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