Skip to content

Commit e7262aa

Browse files
committed
add ts-ignore
1 parent 6e0db18 commit e7262aa

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/firestore/test/lite/integration.test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)