A few more firestore tests

This commit is contained in:
Chris Bianca
2018-03-01 19:04:13 +00:00
parent 8160431811
commit 49757eb56d
3 changed files with 83 additions and 1 deletions

View File

@@ -322,7 +322,12 @@ export default class Query {
// validate.isFieldPath('fieldPath', fieldPath);
// validate.isOptionalFieldOrder('directionStr', directionStr);
if (this._queryOptions.startAt || this._queryOptions.endAt) {
if (
this._queryOptions.startAt ||
this._queryOptions.startAfter ||
this._queryOptions.endAt ||
this._queryOptions.endBefore
) {
throw new Error(
'Cannot specify an orderBy() constraint after calling ' +
'startAt(), startAfter(), endBefore() or endAt().'