@@ -42,7 +42,7 @@ class Tests implements TestManager {
42
42
}
43
43
44
44
this . expected_ = {
45
- 'array value' : [ 'string123' , 42 , false ] ,
45
+ 'array value' : [ 'string123' , 42 , false , { 'nested map property' : 123 } ] ,
46
46
'number value' : 100 ,
47
47
'string value 이' : 'The fox jumps over the lazy dog 름' ,
48
48
'boolean value' : true ,
@@ -186,6 +186,9 @@ class Tests implements TestManager {
186
186
const path = 'Test Collection' ;
187
187
const docs = this . db . getDocuments ( path ) ;
188
188
GSUnit . assertEquals ( 8 , docs . length ) ;
189
+ const doc = docs . find ( ( doc ) => doc . name ! . endsWith ( '/New Document !@#$%^&*(),.<>?;\':"[]{}|-=_+áéíóúæÆÑ' ) ) ;
190
+ GSUnit . assertNotUndefined ( doc ) ;
191
+ GSUnit . assertObjectEquals ( this . expected_ , doc ! . obj ) ;
189
192
}
190
193
191
194
Test_Get_Documents_By_ID ( ) : void {
@@ -201,14 +204,6 @@ class Tests implements TestManager {
201
204
GSUnit . assertEquals ( ids . length - 1 , docs . length ) ;
202
205
}
203
206
204
- Test_Get_Documents_Content ( ) : void {
205
- const path = 'Test Collection' ;
206
- const ids = [ 'New Document !@#$%^&*(),.<>?;\':"[]{}|-=_+áéíóúæÆÑ' ] ;
207
- const docs = this . db . getDocuments ( path , ids ) ;
208
- GSUnit . assertEquals ( ids . length , docs . length ) ;
209
- GSUnit . assertObjectEquals ( this . expected_ , docs [ 0 ] . obj ) ;
210
- }
211
-
212
207
Test_Get_Documents_By_ID_Missing ( ) : void {
213
208
const path = 'Missing Collection' ;
214
209
const ids = [
@@ -258,12 +253,6 @@ class Tests implements TestManager {
258
253
GSUnit . assertArrayEquals ( expected , docs ) ;
259
254
}
260
255
261
- Test_Query_One ( ) : void {
262
- const path = 'Test Collection' ;
263
- const docs = this . db . query ( path ) . Where ( 'null value' , null ) . Execute ( ) ;
264
- GSUnit . assertObjectEquals ( this . expected_ , docs [ 0 ] . obj ) ;
265
- }
266
-
267
256
Test_Query_Select_Name ( ) : void {
268
257
const path = 'Test Collection' ;
269
258
const docs = this . db . query ( path ) . Select ( ) . Execute ( ) ;
@@ -353,6 +342,7 @@ class Tests implements TestManager {
353
342
const path = 'Test Collection' ;
354
343
const docs = this . db . query ( path ) . Where ( 'null value' , null ) . Execute ( ) ;
355
344
GSUnit . assertEquals ( 1 , docs . length ) ;
345
+ GSUnit . assertObjectEquals ( this . expected_ , docs [ 0 ] . obj ) ;
356
346
}
357
347
358
348
Test_Query_OrderBy_Number ( ) : void {
0 commit comments