We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e01a9 commit 5de228eCopy full SHA for 5de228e
test/unit/snapshot.js
@@ -63,6 +63,18 @@ describe('DataSnapshot', function () {
63
expect(child.val()).to.equal('val');
64
});
65
66
+ it('uses child data for false values', function () {
67
+ var parent = new Snapshot(ref, {key: false});
68
+ var child = parent.child('key');
69
+ expect(child.val()).to.equal(false);
70
+ });
71
+
72
+ it('uses child data for 0 values', function () {
73
+ var parent = new Snapshot(ref, {key: 0});
74
75
+ expect(child.val()).to.equal(0);
76
77
78
it('uses null when there is no child data', function () {
79
var parent = new Snapshot(ref);
80
var child = parent.child('key');
0 commit comments