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 abc654d commit f45f6e3Copy full SHA for f45f6e3
test/unit/firebase.js
@@ -886,6 +886,14 @@ describe('MockFirebase', function () {
886
}, done);
887
ref.flush();
888
});
889
+
890
+ it('should return thenable reference when no arguments are passed', function (done) {
891
+ var thenable = ref.push();
892
+ thenable.then(function(child) {
893
+ expect(child.parent).to.eql(ref);
894
+ done();
895
+ }, done);
896
+ });
897
898
it('can add data by auto id', function () {
899
var id = ref._newAutoId();
0 commit comments