Skip to content

Commit 5de228e

Browse files
committed
Failing tests for soumak77#102
1 parent 01e01a9 commit 5de228e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unit/snapshot.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ describe('DataSnapshot', function () {
6363
expect(child.val()).to.equal('val');
6464
});
6565

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+
var child = parent.child('key');
75+
expect(child.val()).to.equal(0);
76+
});
77+
6678
it('uses null when there is no child data', function () {
6779
var parent = new Snapshot(ref);
6880
var child = parent.child('key');

0 commit comments

Comments
 (0)