Skip to content

Commit b683ee4

Browse files
committed
Release v2.2.8
1 parent d4ab3ba commit b683ee4

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebase-mock",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"homepage": "https://github.com/soumak77/firebase-mock",
55
"authors": [
66
"Kato"

browser/firebasemock.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** firebase-mock - v2.2.7
1+
/** firebase-mock - v2.2.8
22
https://github.com/soumak77/firebase-mock
33
* Copyright (c) 2016 Brian Soumakian
44
* License: MIT */
@@ -52442,7 +52442,10 @@ function MockDataSnapshot (ref, data, priority) {
5244252442

5244352443
MockDataSnapshot.prototype.child = function (key) {
5244452444
var ref = this.ref.child(key);
52445-
var data = this.hasChild(key) ? this._snapshotdata[key] : null;
52445+
var data = null;
52446+
if (_.isObject(this._snapshotdata) && !_.isUndefined(this._snapshotdata[key])) {
52447+
data = this._snapshotdata[key];
52448+
}
5244652449
var priority = this.ref.child(key).priority;
5244752450
return new MockDataSnapshot(ref, data, priority);
5244852451
};

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "firebase-mock",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"description": "Firebase mock library for writing unit tests",
55
"main": "./src",
66
"scripts": {

0 commit comments

Comments
 (0)