We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db5f2d3 commit 3648691Copy full SHA for 3648691
spec/providers/database.spec.ts
@@ -33,6 +33,14 @@ describe('providers/database', () => {
33
expect(snapshot.ref.key).to.equal('path');
34
});
35
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
44
it('should use the default test apps databaseURL if no instance is specified in makeDataSnapshot', async () => {
45
const snapshot = makeDataSnapshot(null, 'path', null);
46
0 commit comments