Skip to content

Commit 711b625

Browse files
committed
merge conflict correction
2 parents a63099d + fe66aba commit 711b625

27 files changed

Lines changed: 195 additions & 65 deletions

__tests__/app/App.test.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
21
import React from 'react';
3-
import { shallow } from 'enzyme';
2+
import { shallow, mount } from 'enzyme';
43
import App from '../../app/App';
54
describe('<App />', () => {
65
let wrapper: any;
6+
77
beforeAll(() => {
88
wrapper = shallow(<App />);
99
});
10-
1110
it('should render <Splash /> on the first visit', () => {
12-
expect(wrapper).toMatchSnapshot()
11+
expect(wrapper).toBeDefined();
12+
});
13+
it('should render <DashboardContainer /> if not on the first visit', () => {
14+
jest.useFakeTimers();
15+
wrapper = mount(<App />);
16+
jest.runAllTimers;
17+
expect(setTimeout).toHaveBeenCalledTimes(2);
1318
});
14-
// xit('should render <DashboardContainer /> if not on the first visit');
15-
});
19+
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface IObj {
1313
time: string;
1414
}
1515

16-
const ResponseCodeChart: React.FC = () => {
16+
const ResponseCodesChart: React.FC = () => {
1717
const { commsData } = useContext(CommsContext);
1818

1919
const createChart = () => {
@@ -93,4 +93,4 @@ const ResponseCodeChart: React.FC = () => {
9393
return <div className="responseCodeChart">{createChart()}</div>;
9494
};
9595

96-
export default ResponseCodeChart;
96+
export default ResponseCodesChart;

0 commit comments

Comments
 (0)