Skip to content

Commit 23bd5b1

Browse files
authored
Merge pull request #6835 from topcoder-platform/marathon_match_submission_download
RDM submission download / markdown updates
2 parents b6deb10 + a82df96 commit 23bd5b1

File tree

27 files changed

+7351
-6084
lines changed

27 files changed

+7351
-6084
lines changed

.eslintrc

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
"rules": {
44
"jsx-a11y/anchor-is-valid": false,
55
"import/no-cycle": [2, { "maxDepth": 1 }],
6-
"react/forbid-prop-types": false
6+
"react/forbid-prop-types": false,
7+
"react/no-unknown-property": false,
8+
"react/jsx-no-bind": false,
9+
"react/destructuring-assignment": false,
10+
"react/no-array-index-key": false
711
},
812
"env": {
913
"browser": true
10-
}
14+
}
1115
}

__tests__/shared/components/tc-communities/ArticleCard.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test('render properly', () => {
4646
TU.renderIntoDocument((
4747
<Wrapper
4848
title="How Does An IOS 10 LCD Work"
49-
text={'<p>There are advances being made in science and technology everyday</p>'}
49+
text="<p>There are advances being made in science and technology everyday</p>"
5050
imageSrc="/themes/wipro/home/news-01.jpg"
5151
link={{
5252
title: 'Read More',
@@ -67,7 +67,7 @@ test('render properly', () => {
6767
TU.renderIntoDocument((
6868
<Wrapper
6969
title="How Does An IOS 10 LCD Work"
70-
text={'<p>There are advances being made in science and technology everyday</p>'}
70+
text="<p>There are advances being made in science and technology everyday</p>"
7171
imageSrc="/themes/wipro/home/news-01.jpg"
7272
link={{
7373
title: 'Read More',
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,34 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Matches shallow snapshot 1`] = `
4-
<TopcoderHeaderPlaceholder
4+
<withRouter(TopcoderHeader)
5+
auth={
6+
Object {
7+
"profile": Object {},
8+
}
9+
}
10+
dispatch={[Function]}
511
store={
612
Object {
713
"dispatch": [Function],
814
"getState": [Function],
915
"subscribe": [Function],
1016
}
1117
}
18+
storeSubscription={
19+
Subscription {
20+
"listeners": Object {
21+
"notify": [Function],
22+
},
23+
"onStateChange": [Function],
24+
"parentSub": undefined,
25+
"store": Object {
26+
"dispatch": [Function],
27+
"getState": [Function],
28+
"subscribe": [Function],
29+
},
30+
"unsubscribe": null,
31+
}
32+
}
1233
/>
1334
`;

config/jest/setup.js

+10
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,15 @@ global.window.resizeTo = (width, height) => {
2626
global.window.innerHeight = height || global.window.innerHeight;
2727
global.window.dispatchEvent(new Event('resize'));
2828
};
29+
/* eslint-disable lines-between-class-members */
30+
/* eslint-disable no-empty-function */
31+
/* eslint-disable no-unused-vars */
32+
/* eslint-disable class-methods-use-this */
33+
/* eslint-disable no-useless-constructor */
34+
global.MutationObserver = class {
35+
constructor(callback) {}
36+
disconnect() {}
37+
observe(element, initObject) {}
38+
};
2939

3040
jest.mock('services/money');

0 commit comments

Comments
 (0)