Skip to content

Commit 660b5f7

Browse files
committed
Handle Merge Conflicts
2 parents a76968d + fe66aba commit 660b5f7

27 files changed

Lines changed: 197 additions & 60 deletions

__tests__/app/App.test.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import React from 'react';
2+
<<<<<<< HEAD
23
import ReactDOM from 'react-dom';
34
import { shallow } from 'enzyme';
5+
=======
6+
import { shallow, mount } from 'enzyme';
7+
>>>>>>> master
48
import App from '../../app/App';
59

610
describe('<App />', () => {
711
let wrapper: any;
12+
813
beforeAll(() => {
914
wrapper = shallow(<App />);
1015
});
@@ -16,6 +21,12 @@ describe('<App />', () => {
1621
});
1722

1823
it('should render <Splash /> on the first visit', () => {
19-
expect(wrapper).toMatchSnapshot();
24+
expect(wrapper).toBeDefined();
25+
});
26+
it('should render <DashboardContainer /> if not on the first visit', () => {
27+
jest.useFakeTimers();
28+
wrapper = mount(<App />);
29+
jest.runAllTimers;
30+
expect(setTimeout).toHaveBeenCalledTimes(2);
2031
});
2132
});
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)