Skip to content

Commit 40842f3

Browse files
committed
fix build
1 parent 7527c0d commit 40842f3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

reactfire/firestore/firestore.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ describe('Firestore', () => {
5757
let preloadResolve: (v?: unknown) => void;
5858

5959
preloadFirestore({
60+
// @ts-ignore: TODO: use the regular JS SDK instead of @firebase/testing
6061
firebaseApp,
6162
setup: () => new Promise(resolve => preloadResolve = resolve)
6263
}).then(() => preloadResolved = true);
6364

6465
const Firestore = () => {
66+
// @ts-ignore: TODO: use the regular JS SDK instead of @firebase/testing
6567
const firestore = useFirestore(firebaseApp);
6668
return (
6769
<div data-testid="success"></div>
@@ -79,7 +81,7 @@ describe('Firestore', () => {
7981
await waitForElement(() => getByTestId('fallback'));
8082
expect(preloadResolved).toEqual(false);
8183

82-
await waitForElement(() => getByTestId('success')).then(() => fail('expected throw')).catch(() => {});
84+
await waitForElement(() => getByTestId('success')).then(() => fail('expected throw')).catch(() => { });
8385
expect(preloadResolved).toEqual(false);
8486

8587
preloadResolve();

reactfire/useObservable/useObservable.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('useObservable', () => {
5151
// stop a nasty-looking console error
5252
// https://github.com/facebook/react/issues/11098#issuecomment-523977830
5353
const spy = jest.spyOn(console, 'error');
54-
spy.mockImplementation(() => {});
54+
spy.mockImplementation(() => { });
5555

5656
class ErrorBoundary extends React.Component<{}, { hasError: boolean }> {
5757
constructor(props) {
@@ -120,7 +120,7 @@ describe('useObservable', () => {
120120

121121
const Component = () => {
122122
const val = useObservable(observable$, 'test-suspense');
123-
return <h1 data-testid={actualComponentId}>{val}}</h1>;
123+
return <h1 data-testid={actualComponentId}>{val}</h1>;
124124
};
125125

126126
const { queryByTestId, getByTestId } = render(

0 commit comments

Comments
 (0)