Skip to content

Commit 3648691

Browse files
committed
Failing test case for firebase/firebase-functions#926
1 parent db5f2d3 commit 3648691

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/providers/database.spec.ts

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ describe('providers/database', () => {
3333
expect(snapshot.ref.key).to.equal('path');
3434
});
3535

36+
it('should allow null child value in makeDataSnapshot', async () => {
37+
const snapshot = makeDataSnapshot({ foo: null }, 'path');
38+
39+
expect(snapshot.exists()).be.false;
40+
expect(snapshot.val()).to.deep.equal(null);
41+
expect(snapshot.ref.key).to.equal('path');
42+
});
43+
3644
it('should use the default test apps databaseURL if no instance is specified in makeDataSnapshot', async () => {
3745
const snapshot = makeDataSnapshot(null, 'path', null);
3846

0 commit comments

Comments
 (0)