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 241af33 commit 7c54779Copy full SHA for 7c54779
test/unit/firebase.js
@@ -546,6 +546,18 @@ describe('MockFirebase', function () {
546
expect(ref.getData().some).to.eql({prop: 12});
547
});
548
549
+ it('does override its paths with data', function () {
550
+ ref.child('some').child('prop').set({foo: 1});
551
+ ref.flush();
552
+
553
+ var update = {};
554
+ update['some/prop'] = {bar: 2};
555
+ ref.update(update);
556
557
558
+ expect(ref.getData().some.prop).to.eql({bar: 2});
559
+ });
560
561
it('does not change unrelated data', function () {
562
ref.child('some').child('prop').set(1);
563
ref.child('some').child('other').child('prop').set(2);
0 commit comments