Skip to content

Commit 458db5f

Browse files
Fix Firestore Browser tests (#2216)
1 parent d63371f commit 458db5f

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

packages/firestore/src/util/array.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,6 @@ export function some<T>(array: T[], predicate: (t: T) => boolean): boolean {
3939
return false;
4040
}
4141

42-
/**
43-
* Calls a fn for each element in an array that is an instance of a provided
44-
* class/function.
45-
*/
46-
export function forEachType<A, B>(
47-
array: A[],
48-
type: Function,
49-
fn: (value: B) => void,
50-
thisArg?: {}
51-
): void {
52-
array.forEach(value => {
53-
if (value instanceof type) {
54-
fn.call(thisArg, value);
55-
}
56-
});
57-
}
58-
5942
/**
6043
* Calls predicate function for each item in the array until the predicate
6144
* returns true, at which point the index of that item is returned. If the

packages/firestore/test/integration/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ import '../../index';
2929
const testsContext = (require as any).context('.', true, /.test$/);
3030
const browserTests = testsContext
3131
.keys()
32-
.filter(file => file.indexOf('/node/') < 0);
32+
.filter((file: string) => file.indexOf('/node/') < 0);
3333
browserTests.forEach(testsContext);

packages/firestore/test/unit/bootstrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ import '../../src/platform_browser/browser_init';
2929
const testsContext = (require as any).context('.', true, /.test$/);
3030
const browserTests = testsContext
3131
.keys()
32-
.filter(file => file.indexOf('/node/') < 0);
32+
.filter((file: string) => file.indexOf('/node/') < 0);
3333
browserTests.forEach(testsContext);

0 commit comments

Comments
 (0)