@@ -144,7 +144,7 @@ describe('Storage', function () {
144144 expect ( query . constructor . name ) . toEqual ( 'FirestoreQuery' ) ;
145145 } ) ;
146146
147- it ( 'throws if id is not a string' , function ( ) {
147+ it ( 'throws if id is not a string' , async function ( ) {
148148 try {
149149 // @ts -ignore the type is incorrect *on purpose* to test type checking in javascript
150150 firebase . firestore ( ) . collectionGroup ( 123 ) ;
@@ -154,7 +154,7 @@ describe('Storage', function () {
154154 }
155155 } ) ;
156156
157- it ( 'throws if id is empty' , function ( ) {
157+ it ( 'throws if id is empty' , async function ( ) {
158158 try {
159159 firebase . firestore ( ) . collectionGroup ( '' ) ;
160160 return Promise . reject ( new Error ( 'Did not throw an Error.' ) ) ;
@@ -163,7 +163,7 @@ describe('Storage', function () {
163163 }
164164 } ) ;
165165
166- it ( 'throws if id contains forward-slash' , function ( ) {
166+ it ( 'throws if id contains forward-slash' , async function ( ) {
167167 try {
168168 firebase . firestore ( ) . collectionGroup ( `someCollection/bar` ) ;
169169 return Promise . reject ( new Error ( 'Did not throw an Error.' ) ) ;
@@ -174,7 +174,7 @@ describe('Storage', function () {
174174 } ) ;
175175
176176 describe ( 'collection()' , function ( ) {
177- it ( 'throws if path is not a string' , function ( ) {
177+ it ( 'throws if path is not a string' , async function ( ) {
178178 try {
179179 // @ts -ignore the type is incorrect *on purpose* to test type checking in javascript
180180 firebase . firestore ( ) . collection ( 123 ) ;
@@ -184,7 +184,7 @@ describe('Storage', function () {
184184 }
185185 } ) ;
186186
187- it ( 'throws if path is empty string' , function ( ) {
187+ it ( 'throws if path is empty string' , async function ( ) {
188188 try {
189189 firebase . firestore ( ) . collection ( '' ) ;
190190 return Promise . reject ( new Error ( 'Did not throw an Error.' ) ) ;
@@ -193,7 +193,7 @@ describe('Storage', function () {
193193 }
194194 } ) ;
195195
196- it ( 'throws if path does not point to a collection' , function ( ) {
196+ it ( 'throws if path does not point to a collection' , async function ( ) {
197197 try {
198198 firebase . firestore ( ) . collection ( `firestore/bar` ) ;
199199 return Promise . reject ( new Error ( 'Did not throw an Error.' ) ) ;
@@ -202,15 +202,15 @@ describe('Storage', function () {
202202 }
203203 } ) ;
204204
205- it ( 'returns a new CollectionReference' , function ( ) {
205+ it ( 'returns a new CollectionReference' , async function ( ) {
206206 const collectionReference = firebase . firestore ( ) . collection ( 'firestore' ) ;
207207 expect ( collectionReference . constructor . name ) . toEqual ( 'FirestoreCollectionReference' ) ;
208208 expect ( collectionReference . path ) . toEqual ( 'firestore' ) ;
209209 } ) ;
210210 } ) ;
211211
212212 describe ( 'doc()' , function ( ) {
213- it ( 'throws if path is not a string' , function ( ) {
213+ it ( 'throws if path is not a string' , async function ( ) {
214214 try {
215215 // @ts -ignore the type is incorrect *on purpose* to test type checking in javascript
216216 firebase . firestore ( ) . doc ( 123 ) ;
@@ -220,7 +220,7 @@ describe('Storage', function () {
220220 }
221221 } ) ;
222222
223- it ( 'throws if path is empty string' , function ( ) {
223+ it ( 'throws if path is empty string' , async function ( ) {
224224 try {
225225 firebase . firestore ( ) . doc ( '' ) ;
226226 return Promise . reject ( new Error ( 'Did not throw an Error.' ) ) ;
@@ -229,7 +229,7 @@ describe('Storage', function () {
229229 }
230230 } ) ;
231231
232- it ( 'throws if path does not point to a document' , function ( ) {
232+ it ( 'throws if path does not point to a document' , async function ( ) {
233233 try {
234234 firebase . firestore ( ) . doc ( `${ COLLECTION } /bar/baz` ) ;
235235 return Promise . reject ( new Error ( 'Did not throw an Error.' ) ) ;
@@ -238,7 +238,7 @@ describe('Storage', function () {
238238 }
239239 } ) ;
240240
241- it ( 'returns a new DocumentReference' , function ( ) {
241+ it ( 'returns a new DocumentReference' , async function ( ) {
242242 const docRef = firebase . firestore ( ) . doc ( `${ COLLECTION } /bar` ) ;
243243 expect ( docRef . constructor . name ) . toEqual ( 'FirestoreDocumentReference' ) ;
244244 expect ( docRef . path ) . toEqual ( `${ COLLECTION } /bar` ) ;
0 commit comments