@@ -3137,7 +3137,8 @@ apiDescribe('Database', persistence => {
31373137 const NIGHTLY_PROJECT_ID = 'firestore-sdk-nightly' ;
31383138 const settings = {
31393139 ...DEFAULT_SETTINGS ,
3140- host : 'test-firestore.sandbox.googleapis.com'
3140+ host : 'test-firestore.sandbox.googleapis.com' ,
3141+ databaseId : '(default)'
31413142 } ;
31423143
31433144 it ( 'can write and read BSON types' , async ( ) => {
@@ -3379,6 +3380,7 @@ apiDescribe('Database', persistence => {
33793380 ] ) ;
33803381
33813382 await assertSDKQueryResultsConsistentWithBackend (
3383+ coll ,
33823384 orderedQuery ,
33833385 testDocs ,
33843386 toIds ( snapshot )
@@ -3399,6 +3401,7 @@ apiDescribe('Database', persistence => {
33993401 testDocs [ 'd' ]
34003402 ] ) ;
34013403 await assertSDKQueryResultsConsistentWithBackend (
3404+ coll ,
34023405 orderedQuery ,
34033406 testDocs ,
34043407 toIds ( snapshot )
@@ -3417,6 +3420,7 @@ apiDescribe('Database', persistence => {
34173420 testDocs [ 'b' ]
34183421 ] ) ;
34193422 await assertSDKQueryResultsConsistentWithBackend (
3423+ coll ,
34203424 orderedQuery ,
34213425 testDocs ,
34223426 toIds ( snapshot )
@@ -3435,6 +3439,7 @@ apiDescribe('Database', persistence => {
34353439 testDocs [ 'f' ]
34363440 ] ) ;
34373441 await assertSDKQueryResultsConsistentWithBackend (
3442+ coll ,
34383443 orderedQuery ,
34393444 testDocs ,
34403445 toIds ( snapshot )
@@ -3459,6 +3464,7 @@ apiDescribe('Database', persistence => {
34593464 testDocs [ 'e' ]
34603465 ] ) ;
34613466 await assertSDKQueryResultsConsistentWithBackend (
3467+ coll ,
34623468 orderedQuery ,
34633469 testDocs ,
34643470 toIds ( snapshot )
@@ -3901,6 +3907,7 @@ apiDescribe('Database', persistence => {
39013907 'i' // NaN
39023908 ] ) ;
39033909 await assertSDKQueryResultsConsistentWithBackend (
3910+ coll ,
39043911 orderedQuery ,
39053912 testDocs ,
39063913 toIds ( snapshot )
@@ -3923,6 +3930,7 @@ apiDescribe('Database', persistence => {
39233930 'i'
39243931 ] ) ;
39253932 await assertSDKQueryResultsConsistentWithBackend (
3933+ coll ,
39263934 orderedQuery ,
39273935 testDocs ,
39283936 toIds ( snapshot )
@@ -3936,6 +3944,7 @@ apiDescribe('Database', persistence => {
39363944 snapshot = await getDocs ( orderedQuery ) ;
39373945 expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'f' , 'e' , 'd' , 'c' ] ) ;
39383946 await assertSDKQueryResultsConsistentWithBackend (
3947+ coll ,
39393948 orderedQuery ,
39403949 testDocs ,
39413950 toIds ( snapshot )
@@ -3969,6 +3978,7 @@ apiDescribe('Database', persistence => {
39693978 let snapshot = await getDocs ( orderedQuery ) ;
39703979 expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'b' ] ) ;
39713980 await assertSDKQueryResultsConsistentWithBackend (
3981+ coll ,
39723982 orderedQuery ,
39733983 testDocs ,
39743984 toIds ( snapshot )
@@ -3981,6 +3991,7 @@ apiDescribe('Database', persistence => {
39813991 snapshot = await getDocs ( orderedQuery ) ;
39823992 expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'a' , 'e' , 'd' , 'c' ] ) ;
39833993 await assertSDKQueryResultsConsistentWithBackend (
3994+ coll ,
39843995 orderedQuery ,
39853996 testDocs ,
39863997 toIds ( snapshot )
@@ -3990,6 +4001,7 @@ apiDescribe('Database', persistence => {
39904001 snapshot = await getDocs ( orderedQuery ) ;
39914002 expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'c' ] ) ;
39924003 await assertSDKQueryResultsConsistentWithBackend (
4004+ coll ,
39934005 orderedQuery ,
39944006 testDocs ,
39954007 toIds ( snapshot )
@@ -3999,6 +4011,7 @@ apiDescribe('Database', persistence => {
39994011 snapshot = await getDocs ( orderedQuery ) ;
40004012 expect ( toIds ( snapshot ) ) . to . deep . equal ( [ 'a' , 'e' , 'd' , 'b' ] ) ;
40014013 await assertSDKQueryResultsConsistentWithBackend (
4014+ coll ,
40024015 orderedQuery ,
40034016 testDocs ,
40044017 toIds ( snapshot )
0 commit comments