diff --git a/frontend/app/components/auth/__email-login-form/auth__email-login-form.test.tsx b/frontend/app/components/auth/__email-login-form/auth__email-login-form.test.tsx index 5c4fbb7f..7172798a 100644 --- a/frontend/app/components/auth/__email-login-form/auth__email-login-form.test.tsx +++ b/frontend/app/components/auth/__email-login-form/auth__email-login-form.test.tsx @@ -26,7 +26,7 @@ function simulateInput(input: ReactWrapper, value: string) { describe('EmailLoginForm', () => { const testUser = ({} as any) as User; - const onSuccess = jest.fn(async () => {}); + const onSuccess = jest.fn(async () => undefined); const onSignIn = jest.fn(async () => testUser); beforeEach(() => { diff --git a/frontend/app/components/comment-form/text-expander.tsx b/frontend/app/components/comment-form/text-expander.tsx index 0b4fe089..faf90fc5 100644 --- a/frontend/app/components/comment-form/text-expander.tsx +++ b/frontend/app/components/comment-form/text-expander.tsx @@ -88,7 +88,7 @@ export const TextExpander: FunctionalComponent = ({ children }) => { expander.removeEventListener('text-expander-value', textExpanderValueListener); }; } - return () => {}; + return () => undefined; }, [theme]); if (StaticStore.config.emoji_enabled) { return {children}; diff --git a/frontend/app/components/comment/comment.test.tsx b/frontend/app/components/comment/comment.test.tsx index d40ad7ac..6d3c613e 100644 --- a/frontend/app/components/comment/comment.test.tsx +++ b/frontend/app/components/comment/comment.test.tsx @@ -146,7 +146,7 @@ describe('', () => { }); it('disabled for already upvoted comment', async () => { - const voteSpy = jest.fn(async () => {}); + const voteSpy = jest.fn(async () => undefined); const element = mount( ', () => { }, 30000); it('disabled for already downvoted comment', async () => { - const voteSpy = jest.fn(async () => {}); + const voteSpy = jest.fn(async () => undefined); const element = mount( { ); const dispatch = jest.fn(); const getState = jest.fn(); - await logIn({ name: 'google' })(dispatch, getState, undefined).catch(() => {}); + await logIn({ name: 'google' })(dispatch, getState, undefined).catch(() => undefined); expect(dispatch).not.toBeCalled(); }); it('should unset user on logOut', async () => { - (api.logOut as any).mockImplementation(async (): Promise => {}); + (api.logOut as any).mockImplementation(async (): Promise => undefined); const dispatch = jest.fn(); const getState = jest.fn(); await logout()(dispatch, getState, undefined);