|
1 | | -function StoreCredentials_(): void { |
| 1 | +function StoreCredentials_(): void { |
2 | 2 | /** DO NOT SAVE CREDENTIALS HERE */ |
3 | 3 | const email = 'xxx@appspot.gserviceaccount.com'; |
4 | 4 | const key = '-----BEGIN PRIVATE KEY-----\nLine\nLine\n-----END PRIVATE KEY-----'; |
@@ -201,6 +201,14 @@ class Tests implements TestManager { |
201 | 201 | GSUnit.assertEquals(ids.length - 1, docs.length); |
202 | 202 | } |
203 | 203 |
|
| 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 | + |
204 | 212 | Test_Get_Documents_By_ID_Missing(): void { |
205 | 213 | const path = 'Missing Collection'; |
206 | 214 | const ids = [ |
@@ -250,6 +258,12 @@ class Tests implements TestManager { |
250 | 258 | GSUnit.assertArrayEquals(expected, docs); |
251 | 259 | } |
252 | 260 |
|
| 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 | + |
253 | 267 | Test_Query_Select_Name(): void { |
254 | 268 | const path = 'Test Collection'; |
255 | 269 | const docs = this.db.query(path).Select().Execute(); |
|
0 commit comments