Skip to content

Commit 00f3ea9

Browse files
committed
Further test fixes
1 parent f7ff690 commit 00f3ea9

File tree

2 files changed

+6
-6
lines changed
  • __tests__/shared/components/challenge-detail

2 files changed

+6
-6
lines changed

__tests__/shared/components/challenge-detail/Submissions/SubmissionRow/SubmissionHistoryRow/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
// import ReactDOM from 'react-dom';
33
import Renderer from 'react-test-renderer/shallow';
4-
import TU from 'react-dom/test-utils';
4+
// import TU from 'react-dom/test-utils';
55
import SubmissionHistoryRow from 'components/challenge-detail/Submissions/SubmissionRow/SubmissionHistoryRow';
66

77
const mockData = {
@@ -32,14 +32,14 @@ describe('Matches shallow shapshot', () => {
3232
});
3333
});
3434

35+
/*
3536
class Wrapper extends React.Component {
3637
componentDidMount() {}
3738
3839
render() {
3940
return <SubmissionHistoryRow {...this.props} />;
4041
}
4142
}
42-
/*
4343
describe('render properly', () => {
4444
test('click', () => {
4545
const instance = TU.renderIntoDocument((<Wrapper {...mockData} />));
@@ -48,4 +48,4 @@ describe('render properly', () => {
4848
TU.Simulate.click(matches[0]);
4949
});
5050
});
51-
*/
51+
*/

__tests__/shared/components/challenge-detail/Winners/Winner/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
// import ReactDOM from 'react-dom';
33
import Renderer from 'react-test-renderer/shallow';
4-
import TU from 'react-dom/test-utils';
4+
// import TU from 'react-dom/test-utils';
55
import Winner from 'components/challenge-detail/Winners/Winner';
66

77
const mockData = {
@@ -53,14 +53,14 @@ describe('Matches shallow shapshot', () => {
5353
});
5454
});
5555

56+
/*
5657
class Wrapper extends React.Component {
5758
componentDidMount() {}
5859
5960
render() {
6061
return <Winner {...this.props} />;
6162
}
6263
}
63-
/*
6464
describe('render properly', () => {
6565
test('click', () => {
6666
const instance = TU.renderIntoDocument((<Wrapper {...mockData} />));
@@ -69,4 +69,4 @@ describe('render properly', () => {
6969
TU.Simulate.click(matches[0]);
7070
});
7171
});
72-
*/
72+
*/

0 commit comments

Comments
 (0)