This commit is contained in:
Salakar 2018-08-18 16:47:32 +01:00
parent 86eb39ab2c
commit e0e0389887
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,7 @@ module.exports = {
}
}
if (!batch._writes.length) return Promise.resolve();
return batch.commit();
}
@ -155,8 +156,11 @@ module.exports = {
},
};
firebaseAdmin.firestore().settings({ timestampsInSnapshots: true });
// call a get request without waiting to force firestore to connect
// so the first test isn't delayed whilst connecting
module.exports
.testCollectionDocAdmin(module.exports.DOC_1_PATH)
.get()