Skip to content

Commit d5b9c41

Browse files
committed
fix: tests
1 parent 1c5ba15 commit d5b9c41

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
coverage/
22
dist/
33
examples/
4+
src/**/*.test.ts

src/util.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import { faker } from '@faker-js/faker';
32
import { Firestore, CollectionReference, DocumentChange, QuerySnapshot, DocumentChangeType } from '@google-cloud/firestore';
43

54
import * as util from './util';
65

7-
const createFSSnapshotChange = (type: DocumentChangeType, data: unknown): DocumentChange => {
6+
const createFSSnapshotChange = (type: DocumentChangeType, data: Object): DocumentChange => {
87
const change = {
98
type,
109
doc: {
@@ -46,7 +45,7 @@ const createFSCollection = (id: string): FakeCollection => {
4645
const createFS = (...collections: CollectionReference[]): Firestore => {
4746
const fs = {
4847
collection: jest.fn((path: string) => {
49-
return collections.filter(item => item.id === path).shift() != null || null;
48+
return collections.filter(item => item.id === path).shift() || null;
5049
}),
5150
} as any;
5251

0 commit comments

Comments
 (0)