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 b683ee4 commit 9a9935dCopy full SHA for 9a9935d
test/unit/firebase.js
@@ -546,6 +546,15 @@ describe('MockFirebase', function () {
546
expect(ref.getData().some).to.eql({prop: 12});
547
});
548
549
+ it('can work with nested paths beginning with /', function () {
550
+ var update = {};
551
+ update['some/prop/withoutSlash'] = 12;
552
+ update['/some/prop/withSlash'] = 12;
553
+ ref.update(update);
554
+ ref.flush();
555
+ expect(ref.getData().some.prop).to.eql({withoutSlash: 12, withSlash: 12});
556
+ });
557
+
558
it('overrides the paths with existing data', function () {
559
ref.child('some').child('prop').set({foo: 1});
560
ref.flush();
0 commit comments