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 9d57c28 commit 93ad60dCopy full SHA for 93ad60d
src/firestore-document.js
@@ -88,7 +88,7 @@ MockFirestoreDocument.prototype.get = function () {
88
};
89
90
MockFirestoreDocument.prototype._validateDoesNotExist = function (data) {
91
- if (data) {
+ if (data !== null) {
92
var err = new Error('Cannot create a document which already exists');
93
err.code = 'firestore/already-exists';
94
return err;
0 commit comments