Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/firestore/__tests__/firestore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => getCountFromServer(query),
// @ts-expect-error Combines modular and namespace imports
() => query.count(),
'count',
);
Expand All @@ -958,6 +959,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => getCountFromServer(query),
// @ts-expect-error Combines modular and namespace API
() => query.countFromServer(),
'countFromServer',
);
Expand All @@ -970,6 +972,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => endAt('foo'),
// @ts-expect-error Combines modular and namespace API
() => query.endAt('foo'),
'endAt',
);
Expand All @@ -982,6 +985,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => endBefore('foo'),
// @ts-expect-error Combines modular and namespace API
() => query.endBefore('foo'),
'endBefore',
);
Expand All @@ -994,6 +998,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => getDocs(query),
// @ts-expect-error Combines modular and namespace API
() => query.get(),
'get',
);
Expand All @@ -1007,6 +1012,7 @@ describe('Firestore', function () {
collectionRefV9Deprecation(
// no equivalent method
() => {},
// @ts-expect-error Combines modular and namespace API
() => query.isEqual(query),
'isEqual',
);
Expand All @@ -1019,6 +1025,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => limit(9),
// @ts-expect-error Combines modular and namespace API
() => query.limit(9),
'limit',
);
Expand All @@ -1031,6 +1038,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => limitToLast(9),
// @ts-expect-error Combines modular and namespace API
() => query.limitToLast(9),
'limitToLast',
);
Expand All @@ -1043,6 +1051,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => onSnapshot(query, () => {}),
// @ts-expect-error Combines modular and namespace API
() => query.onSnapshot(() => {}),
'onSnapshot',
);
Expand All @@ -1055,6 +1064,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => orderBy('foo', 'asc'),
// @ts-expect-error Combines modular and namespace API
() => query.orderBy('foo', 'asc'),
'orderBy',
);
Expand All @@ -1067,6 +1077,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => startAfter('foo'),
// @ts-expect-error Combines modular and namespace API
() => query.startAfter('foo'),
'startAfter',
);
Expand All @@ -1079,6 +1090,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => startAt('foo'),
// @ts-expect-error Combines modular and namespace API
() => query.startAt('foo'),
'startAt',
);
Expand All @@ -1091,6 +1103,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => where('foo', '==', 'bar'),
// @ts-expect-error Combines modular and namespace API
() => query.where('foo', '==', 'bar'),
'where',
);
Expand All @@ -1103,6 +1116,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => addDoc(query, { foo: 'bar' }),
// @ts-expect-error Combines modular and namespace API
() => query.add({ foo: 'bar' }),
'add',
);
Expand All @@ -1115,6 +1129,7 @@ describe('Firestore', function () {

collectionRefV9Deprecation(
() => doc(query, 'bar'),
// @ts-expect-error Combines modular and namespace API
() => query.doc('foo'),
'doc',
);
Expand All @@ -1140,6 +1155,7 @@ describe('Firestore', function () {
const docRef = firestore.doc('some/foo');

docRefV9Deprecation(
// @ts-expect-error Combines modular and namespace imports
() => deleteDoc(docRef),
() => docRef.delete(),
'delete',
Expand All @@ -1152,6 +1168,7 @@ describe('Firestore', function () {
const docRef = firestore.doc('some/foo');

docRefV9Deprecation(
// @ts-expect-error Combines modular and namespace imports
() => getDoc(docRef),
() => docRef.get(),
'get',
Expand All @@ -1177,6 +1194,7 @@ describe('Firestore', function () {
const docRef = firestore.doc('some/foo');

docRefV9Deprecation(
// @ts-expect-error Combines modular and namespace imports
() => onSnapshot(docRef, () => {}),
() => docRef.onSnapshot(() => {}),
'onSnapshot',
Expand All @@ -1189,6 +1207,7 @@ describe('Firestore', function () {
const docRef = firestore.doc('some/foo');

docRefV9Deprecation(
// @ts-expect-error Combines modular and namespace imports
() => setDoc(docRef, { foo: 'bar' }),
() => docRef.set({ foo: 'bar' }),
'set',
Expand All @@ -1201,6 +1220,7 @@ describe('Firestore', function () {
const docRef = firestore.doc('some/foo');

docRefV9Deprecation(
// @ts-expect-error Combines modular and namespace imports
() => updateDoc(docRef, { foo: 'bar' }),
() => docRef.update({ foo: 'bar' }),
'update',
Expand Down
Loading
Loading