Skip to content

Commit f4e3d7c

Browse files
committed
fix(firestore): text in test comments
1 parent efb7431 commit f4e3d7c

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

packages/firestore/__tests__/firestore.test.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ describe('Firestore', function () {
959959

960960
collectionRefV9Deprecation(
961961
() => getCountFromServer(query),
962-
// @ts-expect-error Combines modular and namespace imports
962+
// @ts-expect-error Combines modular and namespace API
963963
() => query.countFromServer(),
964964
'countFromServer',
965965
);
@@ -972,7 +972,7 @@ describe('Firestore', function () {
972972

973973
collectionRefV9Deprecation(
974974
() => endAt('foo'),
975-
// @ts-expect-error Combines modular and namespace imports
975+
// @ts-expect-error Combines modular and namespace API
976976
() => query.endAt('foo'),
977977
'endAt',
978978
);
@@ -985,7 +985,7 @@ describe('Firestore', function () {
985985

986986
collectionRefV9Deprecation(
987987
() => endBefore('foo'),
988-
// @ts-expect-error Combines modular and namespace imports
988+
// @ts-expect-error Combines modular and namespace API
989989
() => query.endBefore('foo'),
990990
'endBefore',
991991
);
@@ -998,20 +998,21 @@ describe('Firestore', function () {
998998

999999
collectionRefV9Deprecation(
10001000
() => getDocs(query),
1001-
// @ts-expect-error Combines modular and namespace imports
1001+
// @ts-expect-error Combines modular and namespace API
10021002
() => query.get(),
10031003
'get',
10041004
);
10051005
});
10061006

10071007
it('CollectionReference.isEqual()', function () {
10081008
const firestore = getFirestore();
1009+
10091010
const query = collection(firestore, 'test');
10101011

10111012
collectionRefV9Deprecation(
10121013
// no equivalent method
10131014
() => {},
1014-
// @ts-expect-error Combines modular and namespace imports
1015+
// @ts-expect-error Combines modular and namespace API
10151016
() => query.isEqual(query),
10161017
'isEqual',
10171018
);
@@ -1024,7 +1025,7 @@ describe('Firestore', function () {
10241025

10251026
collectionRefV9Deprecation(
10261027
() => limit(9),
1027-
// @ts-expect-error Combines modular and namespace imports
1028+
// @ts-expect-error Combines modular and namespace API
10281029
() => query.limit(9),
10291030
'limit',
10301031
);
@@ -1037,7 +1038,7 @@ describe('Firestore', function () {
10371038

10381039
collectionRefV9Deprecation(
10391040
() => limitToLast(9),
1040-
// @ts-expect-error Combines modular and namespace imports
1041+
// @ts-expect-error Combines modular and namespace API
10411042
() => query.limitToLast(9),
10421043
'limitToLast',
10431044
);
@@ -1050,7 +1051,7 @@ describe('Firestore', function () {
10501051

10511052
collectionRefV9Deprecation(
10521053
() => onSnapshot(query, () => {}),
1053-
// @ts-expect-error Combines modular and namespace imports
1054+
// @ts-expect-error Combines modular and namespace API
10541055
() => query.onSnapshot(() => {}),
10551056
'onSnapshot',
10561057
);
@@ -1063,7 +1064,7 @@ describe('Firestore', function () {
10631064

10641065
collectionRefV9Deprecation(
10651066
() => orderBy('foo', 'asc'),
1066-
// @ts-expect-error Combines modular and namespace imports
1067+
// @ts-expect-error Combines modular and namespace API
10671068
() => query.orderBy('foo', 'asc'),
10681069
'orderBy',
10691070
);
@@ -1076,7 +1077,7 @@ describe('Firestore', function () {
10761077

10771078
collectionRefV9Deprecation(
10781079
() => startAfter('foo'),
1079-
// @ts-expect-error Combines modular and namespace imports
1080+
// @ts-expect-error Combines modular and namespace API
10801081
() => query.startAfter('foo'),
10811082
'startAfter',
10821083
);
@@ -1089,7 +1090,7 @@ describe('Firestore', function () {
10891090

10901091
collectionRefV9Deprecation(
10911092
() => startAt('foo'),
1092-
// @ts-expect-error Combines modular and namespace imports
1093+
// @ts-expect-error Combines modular and namespace API
10931094
() => query.startAt('foo'),
10941095
'startAt',
10951096
);
@@ -1102,7 +1103,7 @@ describe('Firestore', function () {
11021103

11031104
collectionRefV9Deprecation(
11041105
() => where('foo', '==', 'bar'),
1105-
// @ts-expect-error Combines modular and namespace imports
1106+
// @ts-expect-error Combines modular and namespace API
11061107
() => query.where('foo', '==', 'bar'),
11071108
'where',
11081109
);
@@ -1115,7 +1116,7 @@ describe('Firestore', function () {
11151116

11161117
collectionRefV9Deprecation(
11171118
() => addDoc(query, { foo: 'bar' }),
1118-
// @ts-expect-error Combines modular and namespace imports
1119+
// @ts-expect-error Combines modular and namespace API
11191120
() => query.add({ foo: 'bar' }),
11201121
'add',
11211122
);
@@ -1128,7 +1129,7 @@ describe('Firestore', function () {
11281129

11291130
collectionRefV9Deprecation(
11301131
() => doc(query, 'bar'),
1131-
// @ts-expect-error Combines modular and namespace imports
1132+
// @ts-expect-error Combines modular and namespace API
11321133
() => query.doc('foo'),
11331134
'doc',
11341135
);

0 commit comments

Comments
 (0)