-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from topcoder-platform/develop
Stats integration
- Loading branch information
Showing
32 changed files
with
1,435 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 15 additions & 29 deletions
44
__tests__/shared/components/tc-communities/__snapshots__/IconStat.jsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,19 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Snapshot match 1`] = ` | ||
<IconStat | ||
icon={[Function]} | ||
label="Projects" | ||
number="5" | ||
theme={ | ||
Object { | ||
"container": "src-shared-components-tc-communities-IconStat-___style__container___145TJ", | ||
"icon": "src-shared-components-tc-communities-IconStat-___style__icon___2PSr9", | ||
"label": "src-shared-components-tc-communities-IconStat-___style__label___3v7Pl", | ||
"number": "src-shared-components-tc-communities-IconStat-___style__number___3GKcu", | ||
} | ||
} | ||
/> | ||
`; | ||
|
||
exports[`Snapshot match 2`] = ` | ||
<IconStat | ||
icon={[Function]} | ||
label="Projects" | ||
number="5" | ||
theme={ | ||
Object { | ||
"container": "src-shared-components-tc-communities-IconStat-___style__container___145TJ container", | ||
"icon": "src-shared-components-tc-communities-IconStat-___style__icon___2PSr9 icon", | ||
"label": "src-shared-components-tc-communities-IconStat-___style__label___3v7Pl label", | ||
"number": "src-shared-components-tc-communities-IconStat-___style__number___3GKcu number", | ||
} | ||
} | ||
/> | ||
<div | ||
className="src-shared-components-tc-communities-IconStat-___style__container___145TJ container" | ||
> | ||
<div /> | ||
<p | ||
className="src-shared-components-tc-communities-IconStat-___style__number___3GKcu number" | ||
> | ||
5 | ||
</p> | ||
<p | ||
className="src-shared-components-tc-communities-IconStat-___style__label___3v7Pl label" | ||
> | ||
Projects | ||
</p> | ||
</div> | ||
`; |
12 changes: 12 additions & 0 deletions
12
__tests__/shared/components/tc-communities/communities/demo-expert/Home.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import Rnd from 'react-test-renderer/shallow'; | ||
import Home from 'components/tc-communities/communities/demo-expert/Home'; | ||
|
||
const rnd = new Rnd(); | ||
|
||
test('Snapshot match', () => { | ||
rnd.render(( | ||
<Home /> | ||
)); | ||
expect(rnd.getRenderOutput()).toMatchSnapshot(); | ||
}); |
12 changes: 12 additions & 0 deletions
12
__tests__/shared/components/tc-communities/communities/demo-expert/Learn.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import Rnd from 'react-test-renderer/shallow'; | ||
import Learn from 'components/tc-communities/communities/demo-expert/Learn'; | ||
|
||
const rnd = new Rnd(); | ||
|
||
test('Snapshot match', () => { | ||
rnd.render(( | ||
<Learn /> | ||
)); | ||
expect(rnd.getRenderOutput()).toMatchSnapshot(); | ||
}); |
130 changes: 130 additions & 0 deletions
130
...ts__/shared/components/tc-communities/communities/demo-expert/__snapshots__/Home.jsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Snapshot match 1`] = ` | ||
<main> | ||
<ThemedBanner | ||
composeTheme="deeply" | ||
imageSrc="/themes/wipro/home/banner.jpg" | ||
link={ | ||
Object { | ||
"title": "Compete Now", | ||
"url": "challenges", | ||
} | ||
} | ||
mapThemrProps={[Function]} | ||
text="Wipro's Hybrid Crowd gives our vast ecosystem of customers and partners options to access new range of skills that provide new value services and efficiency options all over the world." | ||
theme={Object {}} | ||
title="Wipro Crowd" | ||
/> | ||
<Connect(GroupStatsContainer) /> | ||
<ThemedSection | ||
composeTheme="deeply" | ||
link={null} | ||
mapThemrProps={[Function]} | ||
theme={ | ||
Object { | ||
"container": "src-shared-components-tc-communities-communities-demo-expert-Home-___style__linksContainer___15dON", | ||
} | ||
} | ||
title={null} | ||
> | ||
<div> | ||
<ThemedImageText | ||
composeTheme="deeply" | ||
imageSrc="/themes/wipro/home/image-text-learn.jpg" | ||
link={ | ||
Object { | ||
"title": "Start Learning", | ||
"url": "learn", | ||
} | ||
} | ||
mapThemrProps={[Function]} | ||
text="Our continuously evolving structured learning paths, constantly abreast of the latest, tailored for employees to deepen your knowledge, infuses important software capabilities that are industry specific and help you get the skills you need to succeed." | ||
theme={Object {}} | ||
title="Improve Your Skills" | ||
/> | ||
<ThemedImageText | ||
composeTheme="deeply" | ||
imageSrc="/themes/wipro/home/image-text-do.jpg" | ||
link={ | ||
Object { | ||
"title": "Start Earning", | ||
"url": "challenges", | ||
} | ||
} | ||
mapThemrProps={[Function]} | ||
text="Rewards program is intended to celebrate and recognize your contribution. Rewards for project contributions are given using ‘Reward Points’. Points earned translate into badges. Quarterly rewards are given away to the toppers of all categories." | ||
theme={Object {}} | ||
title="Get Involved" | ||
/> | ||
</div> | ||
</ThemedSection> | ||
<ThemedSection | ||
composeTheme="deeply" | ||
link={null} | ||
mapThemrProps={[Function]} | ||
theme={ | ||
Object { | ||
"container": "src-shared-components-tc-communities-communities-demo-expert-Home-___style__resourcesContainer___3u3oE", | ||
} | ||
} | ||
title={null} | ||
> | ||
<ThemedResourceCard | ||
composeTheme="deeply" | ||
icon={[Function]} | ||
link={ | ||
Object { | ||
"title": "Browse resources", | ||
"url": "learn", | ||
} | ||
} | ||
mapThemrProps={[Function]} | ||
text="Pellentesque non dignissim neque. Nunc vel rhoncus nibh, ut tincidunt turpis. Integer ac enim pellentesque, adipiscing metus id, pharetra odio." | ||
theme={Object {}} | ||
title="Up Your iOS and Swift Development Skills" | ||
/> | ||
<ThemedResourceCard | ||
composeTheme="deeply" | ||
icon={[Function]} | ||
link={ | ||
Object { | ||
"title": "Learn about badges", | ||
"url": "leaderboard", | ||
} | ||
} | ||
mapThemrProps={[Function]} | ||
text="Donec bibendum nunc sit amet tortor scelerisque luctus et sit amet mauris. Suspendisse felis sem, condimentum ullamcorper est sit amet, molestie" | ||
theme={Object {}} | ||
title="Take the First Steps to Stand Out in the Community" | ||
/> | ||
<ThemedResourceCard | ||
composeTheme="deeply" | ||
icon={[Function]} | ||
link={ | ||
Object { | ||
"title": "Browse challenges", | ||
"url": "challenges", | ||
} | ||
} | ||
mapThemrProps={[Function]} | ||
text="Suspendisse felis sem, condimentum ullamcorper est sit amet, molestie mollis nulla. Etiam lorem orci, consequat ac magna quis, facilisis" | ||
theme={Object {}} | ||
title="Compete in Challenges and Win Cash" | ||
/> | ||
</ThemedSection> | ||
<NewsSection | ||
news={Array []} | ||
/> | ||
<ThemedNewsletterSignup | ||
buttonText="Sign Up" | ||
composeTheme="deeply" | ||
emailPlaceholder="Email address" | ||
imageSrc="/themes/wipro/subscribe-bg.jpg" | ||
mapThemrProps={[Function]} | ||
text="Don’t miss out on the latest Topcoder IOS challenges and information!" | ||
theme={Object {}} | ||
title="Sign up for our newsletter" | ||
/> | ||
</main> | ||
`; |
Oops, something went wrong.