Skip to content

Commit

Permalink
Merge pull request #6836 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
Release v1.21.3 : RDM submission download / markdown fixes
  • Loading branch information
jmgasper authored Mar 1, 2023
2 parents bfa6c3d + 23bd5b1 commit b19a9f9
Show file tree
Hide file tree
Showing 27 changed files with 7,351 additions and 6,084 deletions.
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
"rules": {
"jsx-a11y/anchor-is-valid": false,
"import/no-cycle": [2, { "maxDepth": 1 }],
"react/forbid-prop-types": false
"react/forbid-prop-types": false,
"react/no-unknown-property": false,
"react/jsx-no-bind": false,
"react/destructuring-assignment": false,
"react/no-array-index-key": false
},
"env": {
"browser": true
}
}
}
4 changes: 2 additions & 2 deletions __tests__/shared/components/tc-communities/ArticleCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('render properly', () => {
TU.renderIntoDocument((
<Wrapper
title="How Does An IOS 10 LCD Work"
text={'<p>There are advances being made in science and technology everyday</p>'}
text="<p>There are advances being made in science and technology everyday</p>"
imageSrc="/themes/wipro/home/news-01.jpg"
link={{
title: 'Read More',
Expand All @@ -67,7 +67,7 @@ test('render properly', () => {
TU.renderIntoDocument((
<Wrapper
title="How Does An IOS 10 LCD Work"
text={'<p>There are advances being made in science and technology everyday</p>'}
text="<p>There are advances being made in science and technology everyday</p>"
imageSrc="/themes/wipro/home/news-01.jpg"
link={{
title: 'Read More',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Matches shallow snapshot 1`] = `
<TopcoderHeaderPlaceholder
<withRouter(TopcoderHeader)
auth={
Object {
"profile": Object {},
}
}
dispatch={[Function]}
store={
Object {
"dispatch": [Function],
"getState": [Function],
"subscribe": [Function],
}
}
storeSubscription={
Subscription {
"listeners": Object {
"notify": [Function],
},
"onStateChange": [Function],
"parentSub": undefined,
"store": Object {
"dispatch": [Function],
"getState": [Function],
"subscribe": [Function],
},
"unsubscribe": null,
}
}
/>
`;
10 changes: 10 additions & 0 deletions config/jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,15 @@ global.window.resizeTo = (width, height) => {
global.window.innerHeight = height || global.window.innerHeight;
global.window.dispatchEvent(new Event('resize'));
};
/* eslint-disable lines-between-class-members */
/* eslint-disable no-empty-function */
/* eslint-disable no-unused-vars */
/* eslint-disable class-methods-use-this */
/* eslint-disable no-useless-constructor */
global.MutationObserver = class {
constructor(callback) {}
disconnect() {}
observe(element, initObject) {}
};

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

0 comments on commit b19a9f9

Please sign in to comment.