@@ -3137,7 +3137,8 @@ apiDescribe('Database', persistence => {
3137
3137
const NIGHTLY_PROJECT_ID = 'firestore-sdk-nightly' ;
3138
3138
const settings = {
3139
3139
...DEFAULT_SETTINGS ,
3140
- host : 'test-firestore.sandbox.googleapis.com'
3140
+ host : 'test-firestore.sandbox.googleapis.com' ,
3141
+ databaseId : '(default)'
3141
3142
} ;
3142
3143
3143
3144
it ( 'can write and read BSON types' , async ( ) => {
@@ -3379,6 +3380,7 @@ apiDescribe('Database', persistence => {
3379
3380
] ) ;
3380
3381
3381
3382
await assertSDKQueryResultsConsistentWithBackend (
3383
+ coll ,
3382
3384
orderedQuery ,
3383
3385
testDocs ,
3384
3386
toIds ( snapshot )
@@ -3399,6 +3401,7 @@ apiDescribe('Database', persistence => {
3399
3401
testDocs [ 'd' ]
3400
3402
] ) ;
3401
3403
await assertSDKQueryResultsConsistentWithBackend (
3404
+ coll ,
3402
3405
orderedQuery ,
3403
3406
testDocs ,
3404
3407
toIds ( snapshot )
@@ -3417,6 +3420,7 @@ apiDescribe('Database', persistence => {
3417
3420
testDocs [ 'b' ]
3418
3421
] ) ;
3419
3422
await assertSDKQueryResultsConsistentWithBackend (
3423
+ coll ,
3420
3424
orderedQuery ,
3421
3425
testDocs ,
3422
3426
toIds ( snapshot )
@@ -3435,6 +3439,7 @@ apiDescribe('Database', persistence => {
3435
3439
testDocs [ 'f' ]
3436
3440
] ) ;
3437
3441
await assertSDKQueryResultsConsistentWithBackend (
3442
+ coll ,
3438
3443
orderedQuery ,
3439
3444
testDocs ,
3440
3445
toIds ( snapshot )
@@ -3459,6 +3464,7 @@ apiDescribe('Database', persistence => {
3459
3464
testDocs [ 'e' ]
3460
3465
] ) ;
3461
3466
await assertSDKQueryResultsConsistentWithBackend (
3467
+ coll ,
3462
3468
orderedQuery ,
3463
3469
testDocs ,
3464
3470
toIds ( snapshot )
@@ -3901,6 +3907,7 @@ apiDescribe('Database', persistence => {
3901
3907
'i' // NaN
3902
3908
] ) ;
3903
3909
await assertSDKQueryResultsConsistentWithBackend (
3910
+ coll ,
3904
3911
orderedQuery ,
3905
3912
testDocs ,
3906
3913
toIds ( snapshot )
@@ -3923,6 +3930,7 @@ apiDescribe('Database', persistence => {
3923
3930
'i'
3924
3931
] ) ;
3925
3932
await assertSDKQueryResultsConsistentWithBackend (
3933
+ coll ,
3926
3934
orderedQuery ,
3927
3935
testDocs ,
3928
3936
toIds ( snapshot )
@@ -3936,6 +3944,7 @@ apiDescribe('Database', persistence => {
3936
3944
snapshot = await getDocs ( orderedQuery ) ;
3937
3945
expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'f' , 'e' , 'd' , 'c' ] ) ;
3938
3946
await assertSDKQueryResultsConsistentWithBackend (
3947
+ coll ,
3939
3948
orderedQuery ,
3940
3949
testDocs ,
3941
3950
toIds ( snapshot )
@@ -3969,6 +3978,7 @@ apiDescribe('Database', persistence => {
3969
3978
let snapshot = await getDocs ( orderedQuery ) ;
3970
3979
expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'b' ] ) ;
3971
3980
await assertSDKQueryResultsConsistentWithBackend (
3981
+ coll ,
3972
3982
orderedQuery ,
3973
3983
testDocs ,
3974
3984
toIds ( snapshot )
@@ -3981,6 +3991,7 @@ apiDescribe('Database', persistence => {
3981
3991
snapshot = await getDocs ( orderedQuery ) ;
3982
3992
expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'a' , 'e' , 'd' , 'c' ] ) ;
3983
3993
await assertSDKQueryResultsConsistentWithBackend (
3994
+ coll ,
3984
3995
orderedQuery ,
3985
3996
testDocs ,
3986
3997
toIds ( snapshot )
@@ -3990,6 +4001,7 @@ apiDescribe('Database', persistence => {
3990
4001
snapshot = await getDocs ( orderedQuery ) ;
3991
4002
expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'c' ] ) ;
3992
4003
await assertSDKQueryResultsConsistentWithBackend (
4004
+ coll ,
3993
4005
orderedQuery ,
3994
4006
testDocs ,
3995
4007
toIds ( snapshot )
@@ -3999,6 +4011,7 @@ apiDescribe('Database', persistence => {
3999
4011
snapshot = await getDocs ( orderedQuery ) ;
4000
4012
expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'a' , 'e' , 'd' , 'b' ] ) ;
4001
4013
await assertSDKQueryResultsConsistentWithBackend (
4014
+ coll ,
4002
4015
orderedQuery ,
4003
4016
testDocs ,
4004
4017
toIds ( snapshot )
0 commit comments