@@ -21,17 +21,16 @@ import * as testHelpers from '../../util/helpers';
21
21
import firebase from '../util/firebase_export' ;
22
22
import * as integrationHelpers from '../util/helpers' ;
23
23
24
- const asyncIt = testHelpers . asyncIt ;
25
24
const apiDescribe = integrationHelpers . apiDescribe ;
26
25
27
26
apiDescribe ( 'Database batch writes' , persistence => {
28
- asyncIt ( 'support empty batches' , ( ) => {
27
+ it ( 'support empty batches' , ( ) => {
29
28
return integrationHelpers . withTestDb ( persistence , db => {
30
29
return db . batch ( ) . commit ( ) ;
31
30
} ) ;
32
31
} ) ;
33
32
34
- asyncIt ( 'can set documents' , ( ) => {
33
+ it ( 'can set documents' , ( ) => {
35
34
return integrationHelpers . withTestDoc ( persistence , doc => {
36
35
return doc . firestore
37
36
. batch ( )
@@ -45,7 +44,7 @@ apiDescribe('Database batch writes', persistence => {
45
44
} ) ;
46
45
} ) ;
47
46
48
- asyncIt ( 'can set documents with merge' , ( ) => {
47
+ it ( 'can set documents with merge' , ( ) => {
49
48
return integrationHelpers . withTestDoc ( persistence , doc => {
50
49
return doc . firestore
51
50
. batch ( )
@@ -69,7 +68,7 @@ apiDescribe('Database batch writes', persistence => {
69
68
} ) ;
70
69
} ) ;
71
70
72
- asyncIt ( 'can update documents' , ( ) => {
71
+ it ( 'can update documents' , ( ) => {
73
72
return integrationHelpers . withTestDoc ( persistence , doc => {
74
73
return doc
75
74
. set ( { foo : 'bar' } )
@@ -87,7 +86,7 @@ apiDescribe('Database batch writes', persistence => {
87
86
} ) ;
88
87
} ) ;
89
88
90
- asyncIt ( 'can delete documents' , ( ) => {
89
+ it ( 'can delete documents' , ( ) => {
91
90
return integrationHelpers . withTestDoc ( persistence , doc => {
92
91
return doc
93
92
. set ( { foo : 'bar' } )
@@ -108,7 +107,7 @@ apiDescribe('Database batch writes', persistence => {
108
107
} ) ;
109
108
} ) ;
110
109
111
- asyncIt ( 'commit atomically, raising correct events' , ( ) => {
110
+ it ( 'commit atomically, raising correct events' , ( ) => {
112
111
return integrationHelpers . withTestCollection (
113
112
persistence ,
114
113
{ } ,
@@ -156,7 +155,7 @@ apiDescribe('Database batch writes', persistence => {
156
155
) ;
157
156
} ) ;
158
157
159
- asyncIt ( 'fail atomically, raising correct events' , ( ) => {
158
+ it ( 'fail atomically, raising correct events' , ( ) => {
160
159
return integrationHelpers . withTestCollection (
161
160
persistence ,
162
161
{ } ,
@@ -217,7 +216,7 @@ apiDescribe('Database batch writes', persistence => {
217
216
) ;
218
217
} ) ;
219
218
220
- asyncIt ( 'write the same server timestamp across writes' , ( ) => {
219
+ it ( 'write the same server timestamp across writes' , ( ) => {
221
220
return integrationHelpers . withTestCollection (
222
221
persistence ,
223
222
{ } ,
@@ -271,7 +270,7 @@ apiDescribe('Database batch writes', persistence => {
271
270
) ;
272
271
} ) ;
273
272
274
- asyncIt ( 'can write the same document multiple times' , ( ) => {
273
+ it ( 'can write the same document multiple times' , ( ) => {
275
274
return integrationHelpers . withTestDoc ( persistence , doc => {
276
275
const accumulator = new testHelpers . EventsAccumulator <
277
276
firestore . DocumentSnapshot
@@ -313,7 +312,7 @@ apiDescribe('Database batch writes', persistence => {
313
312
} ) ;
314
313
} ) ;
315
314
316
- asyncIt ( 'can update nested fields' , ( ) => {
315
+ it ( 'can update nested fields' , ( ) => {
317
316
const initialData = {
318
317
desc : 'Description' ,
319
318
owner : { name : 'Jonny' } ,
0 commit comments