File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/firestore/test/lite Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -285,10 +285,16 @@ describe('doc', () => {
285285
286286 it ( 'validates path' , ( ) => {
287287 return withTestDb ( db => {
288- expect ( ( ) => doc ( undefined , 'coll/doc' ) ) . to . throw (
289- 'Function doc() cannot be called with an undefined first argument.'
288+ expect ( ( ) =>
289+ // @ts -ignore
290+ doc ( undefined , 'coll/doc' )
291+ ) . to . throw (
292+ 'Function doc() cannot be called with an empty first argument.'
290293 ) ;
291- expect ( ( ) => doc ( { } , 'coll/doc' ) ) . to . throw (
294+ expect ( ( ) =>
295+ // @ts -ignore
296+ doc ( { } , 'coll/doc' )
297+ ) . to . throw (
292298 'Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore'
293299 ) ;
294300 expect ( ( ) => doc ( db , 'coll' ) ) . to . throw (
You can’t perform that action at this time.
0 commit comments