Skip to content

Commit

Permalink
Failing tests for #102
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodgkins committed Sep 26, 2018
1 parent 01e01a9 commit 5de228e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/unit/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,18 @@ describe('DataSnapshot', function () {
expect(child.val()).to.equal('val');
});

it('uses child data for false values', function () {
var parent = new Snapshot(ref, {key: false});
var child = parent.child('key');
expect(child.val()).to.equal(false);
});

it('uses child data for 0 values', function () {
var parent = new Snapshot(ref, {key: 0});
var child = parent.child('key');
expect(child.val()).to.equal(0);
});

it('uses null when there is no child data', function () {
var parent = new Snapshot(ref);
var child = parent.child('key');
Expand Down

0 comments on commit 5de228e

Please sign in to comment.