fix: routes - Replaced class by func. comp (#159)

* refactor: updated routes

* fix: fixed conflicts issues

* fix: rollback port
This commit is contained in:
Priscila Oliveira
2019-10-19 10:49:04 +02:00
committed by Juan Picado @jotadeveloper
parent 8c66dbc4d7
commit 5c06ace14a
6 changed files with 100 additions and 114 deletions

View File

@@ -4,7 +4,8 @@ import { mount, ReactWrapper } from 'enzyme';
import storage from '../utils/storage';
import { generateTokenWithTimeRange } from '../../jest/unit/components/__mocks__/token';
import App, { AppStateInterface } from './App';
import App from './App';
import { AppProps } from './AppContext';
jest.mock('../utils/storage', () => {
class LocalStorageMock {
@@ -33,7 +34,7 @@ jest.mock('../utils/api', () => ({
}));
describe('App', () => {
let wrapper: ReactWrapper<{}, AppStateInterface, App>;
let wrapper: ReactWrapper<{}, AppProps, App>;
beforeEach(() => {
wrapper = mount(<App />);