diff --git a/__tests__/tests/App.test.jsx b/__tests__/tests/App.test.jsx index 8be9df0e6b..ef0e9fa5f0 100644 --- a/__tests__/tests/App.test.jsx +++ b/__tests__/tests/App.test.jsx @@ -34,4 +34,4 @@ describe('', () => { const login = appWrapper.find(Login); expect(login.length).toBe(0); }); -}); \ No newline at end of file +}); diff --git a/__tests__/tests/ConditionalRedirect.test.jsx b/__tests__/tests/ConditionalRedirect.test.jsx index af241810eb..c437ae6971 100644 --- a/__tests__/tests/ConditionalRedirect.test.jsx +++ b/__tests__/tests/ConditionalRedirect.test.jsx @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import React from 'react'; import { Route, Redirect @@ -9,7 +9,11 @@ import ConditionalRedirect from '../../src/components/ConditionalRedirect'; describe('', () => { test('renders Redirect when shouldRedirect is passed truthy func', () => { const truthyFunc = () => true; - const shouldHaveRedirectChild = shallow( truthyFunc()} />); + const shouldHaveRedirectChild = shallow( + truthyFunc()} + /> + ); const redirectChild = shouldHaveRedirectChild.find(Redirect); expect(redirectChild.length).toBe(1); const routeChild = shouldHaveRedirectChild.find(Route); @@ -18,10 +22,14 @@ describe('', () => { test('renders Route when shouldRedirect is passed falsy func', () => { const falsyFunc = () => false; - const shouldHaveRouteChild = shallow( falsyFunc()} />); + const shouldHaveRouteChild = shallow( + falsyFunc()} + /> + ); const routeChild = shouldHaveRouteChild.find(Route); expect(routeChild.length).toBe(1); const redirectChild = shouldHaveRouteChild.find(Redirect); expect(redirectChild.length).toBe(0); }); -}); \ No newline at end of file +});