Skip to content

Commit dc42228

Browse files
committed
fix lint errors
1 parent f75534f commit dc42228

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

packages/firestore/src/remote/watch_change.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export class WatchChangeAggregator {
436436
TestingHooks.instance?.notifyOnExistenceFilterMismatch({
437437
actualCount: currentSize,
438438
change: watchChange,
439-
bloomFilterApplied: bloomFilterApplied
439+
bloomFilterApplied
440440
});
441441
}
442442
}

packages/firestore/src/util/testing_hooks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ let gTestingHooksSingletonInstance: TestingHooks | null = null;
3333
* register a testing hook.
3434
*/
3535
export class TestingHooks {
36-
private readonly onExistenceFilterMismatchCallbacks = new Array<
36+
private readonly onExistenceFilterMismatchCallbacks: Array<
3737
(arg: unknown) => void
38-
>();
38+
> = [];
3939

4040
private constructor() {}
4141

packages/firestore/test/integration/api/query.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,8 @@ apiDescribe('Queries', (persistence: boolean) => {
20652065
// TODO(b/270731363): Re-enable this test to run against the Firestore
20662066
// emulator once the bug where an existence filter fails to be sent when a
20672067
// query is resumed is fixed.
2068-
(USE_EMULATOR || !persistence ? it.skip : it.only)(
2068+
// eslint-disable-next-line no-restricted-properties
2069+
(USE_EMULATOR || !persistence ? it.skip : it)(
20692070
'resuming a query should use bloom filter to avoid full requery',
20702071
async () => {
20712072
// Create 100 documents in a new collection.

packages/firestore/test/integration/util/testing_hooks_util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import { _TestingHooks as TestingHooks } from './firebase_export';
2626
*/
2727
export async function captureExistenceFilterMismatches(
2828
callback: () => Promise<void>
29-
): Promise<Array<ExistenceFilterMismatchInfo>> {
30-
const results: Array<ExistenceFilterMismatchInfo> = [];
29+
): Promise<ExistenceFilterMismatchInfo[]> {
30+
const results: ExistenceFilterMismatchInfo[] = [];
3131
const callbackWrapper = (arg: unknown) =>
3232
results.push(
3333
existenceFilterMismatchInfoFromRaw(arg as RawExistenceFilterMismatchInfo)

0 commit comments

Comments
 (0)