@@ -813,12 +813,12 @@ apiDescribe('Validation:', (persistence: boolean) => {
813
813
) ;
814
814
expect ( ( ) => query . startAt ( 'foo/bar' ) ) . to . throw (
815
815
'Invalid query. When querying a collection and ordering by ' +
816
- 'FieldPath. documentId(), the value passed to Query.startAt() ' +
816
+ 'documentId(), the value passed to Query.startAt() ' +
817
817
"must be a plain document ID, but 'foo/bar' contains a slash."
818
818
) ;
819
819
expect ( ( ) => cgQuery . startAt ( 'foo' ) ) . to . throw (
820
820
'Invalid query. When querying a collection group and ordering by ' +
821
- 'FieldPath. documentId(), the value passed to Query.startAt() ' +
821
+ 'documentId(), the value passed to Query.startAt() ' +
822
822
"must result in a valid document path, but 'foo' is not because " +
823
823
'it contains an odd number of segments.'
824
824
) ;
@@ -1208,42 +1208,42 @@ apiDescribe('Validation:', (persistence: boolean) => {
1208
1208
expect ( ( ) =>
1209
1209
collection . where ( FieldPath . documentId ( ) , '>=' , '' )
1210
1210
) . to . throw (
1211
- 'Invalid query. When querying with FieldPath. documentId(), you ' +
1211
+ 'Invalid query. When querying with documentId(), you ' +
1212
1212
'must provide a valid document ID, but it was an empty string.'
1213
1213
) ;
1214
1214
expect ( ( ) =>
1215
1215
collection . where ( FieldPath . documentId ( ) , '>=' , 'foo/bar/baz' )
1216
1216
) . to . throw (
1217
- `Invalid query. When querying a collection by ` +
1218
- `FieldPath.documentId(), you must provide a plain document ID, but ` +
1217
+ `Invalid query. When querying a collection by documentId(), ` +
1218
+ `you must provide a plain document ID, but ` +
1219
1219
`'foo/bar/baz' contains a '/' character.`
1220
1220
) ;
1221
1221
expect ( ( ) =>
1222
1222
collection . where ( FieldPath . documentId ( ) , '>=' , 1 )
1223
1223
) . to . throw (
1224
- 'Invalid query. When querying with FieldPath. documentId(), you must ' +
1224
+ 'Invalid query. When querying with documentId(), you must ' +
1225
1225
'provide a valid string or a DocumentReference, but it was: 1.'
1226
1226
) ;
1227
1227
expect ( ( ) =>
1228
1228
db . collectionGroup ( 'foo' ) . where ( FieldPath . documentId ( ) , '>=' , 'foo' )
1229
1229
) . to . throw (
1230
- `Invalid query. When querying a collection group by ` +
1231
- `FieldPath.documentId(), the value provided must result in a valid document path, ` +
1230
+ `Invalid query. When querying a collection group by documentId(), ` +
1231
+ `the value provided must result in a valid document path, ` +
1232
1232
`but 'foo' is not because it has an odd number of segments (1).`
1233
1233
) ;
1234
1234
1235
1235
expect ( ( ) =>
1236
1236
collection . where ( FieldPath . documentId ( ) , 'array-contains' , 1 )
1237
1237
) . to . throw (
1238
1238
"Invalid Query. You can't perform 'array-contains' queries on " +
1239
- 'FieldPath. documentId().'
1239
+ 'documentId().'
1240
1240
) ;
1241
1241
1242
1242
expect ( ( ) =>
1243
1243
collection . where ( FieldPath . documentId ( ) , 'array-contains-any' , 1 )
1244
1244
) . to . throw (
1245
1245
"Invalid Query. You can't perform 'array-contains-any' queries on " +
1246
- 'FieldPath. documentId().'
1246
+ 'documentId().'
1247
1247
) ;
1248
1248
}
1249
1249
) ;
@@ -1261,30 +1261,30 @@ apiDescribe('Validation:', (persistence: boolean) => {
1261
1261
expect ( ( ) =>
1262
1262
collection . where ( FieldPath . documentId ( ) , 'in' , [ '' ] )
1263
1263
) . to . throw (
1264
- 'Invalid query. When querying with FieldPath. documentId(), you ' +
1264
+ 'Invalid query. When querying with documentId(), you ' +
1265
1265
'must provide a valid document ID, but it was an empty string.'
1266
1266
) ;
1267
1267
1268
1268
expect ( ( ) =>
1269
1269
collection . where ( FieldPath . documentId ( ) , 'in' , [ 'foo/bar/baz' ] )
1270
1270
) . to . throw (
1271
- `Invalid query. When querying a collection by ` +
1272
- `FieldPath.documentId(), you must provide a plain document ID, but ` +
1273
- `'foo/bar/baz' contains a ' /' character.`
1271
+ `Invalid query. When querying a collection by documentId(), you ` +
1272
+ `must provide a plain document ID, but 'foo/bar/baz' contains a ` +
1273
+ `'/' character.`
1274
1274
) ;
1275
1275
1276
1276
expect ( ( ) =>
1277
1277
collection . where ( FieldPath . documentId ( ) , 'in' , [ 1 , 2 ] )
1278
1278
) . to . throw (
1279
- 'Invalid query. When querying with FieldPath. documentId(), you must ' +
1279
+ 'Invalid query. When querying with documentId(), you must ' +
1280
1280
'provide a valid string or a DocumentReference, but it was: 1.'
1281
1281
) ;
1282
1282
1283
1283
expect ( ( ) =>
1284
1284
db . collectionGroup ( 'foo' ) . where ( FieldPath . documentId ( ) , 'in' , [ 'foo' ] )
1285
1285
) . to . throw (
1286
- `Invalid query. When querying a collection group by ` +
1287
- `FieldPath.documentId(), the value provided must result in a valid document path, ` +
1286
+ `Invalid query. When querying a collection group by documentId(), ` +
1287
+ `the value provided must result in a valid document path, ` +
1288
1288
`but 'foo' is not because it has an odd number of segments (1).`
1289
1289
) ;
1290
1290
}
0 commit comments