Skip to content

Commit

Permalink
[#270] Adding new test case and update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
DeKal committed May 30, 2020
1 parent 2e7f468 commit dfb6fc9
Show file tree
Hide file tree
Showing 3 changed files with 680 additions and 294 deletions.
12 changes: 12 additions & 0 deletions modules/home/components/__test__/SideProjects.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as React from 'react'
import { mountWithTheme } from '~/modules/core/utils/withThemeProviders'
import SideProjects from '~/modules/home/components/SideProjects'

describe('SideProjects', () => {

it('should render without throwing an error', function () {
const wrap = mountWithTheme(<SideProjects />)
expect(wrap).toMatchSnapshot()
})

})
Original file line number Diff line number Diff line change
Expand Up @@ -668,300 +668,6 @@ exports[`Experiences should render without throwing an error 1`] = `
</List>
</div>
</Row>
<Row
key="2"
noGutters={false}
>
<div
className="row"
>
<List
companies={
Array [
"SmartApp",
"Brand360",
]
}
>
<Col
key="SmartApp"
md={6}
>
<div
className="col-md-6"
>
<List__Container>
<ul
className="List__Container-sc-1s8tx8z-0 cmjuOV"
>
<Item
description="Exp: SmartApp Desc"
skill="Exp: SmartApp Skill"
title="Exp: SmartApp Title"
>
<Item__Container>
<li
className="Item__Container-yry9ye-0 kezTPZ"
>
<ExpIcon
name="workexp"
>
<Icon
className="ExpIcon-pd7zps-0 dhnVtU"
name="workexp"
>
<Icon__Symbol
className="ExpIcon-pd7zps-0 dhnVtU"
name="workexp"
>
<div
className="Icon__Symbol-sc-6mj7rl-0 hBwWez ExpIcon-pd7zps-0 dhnVtU"
name="workexp"
/>
</Icon__Symbol>
</Icon>
</ExpIcon>
<Title>
<h4
className="Title-sc-1d79yk1-0 cRQkWu"
>
<Translate
id="Exp: SmartApp Title"
>
<WrappedTranslate
context={
Object {
"activeLanguage": undefined,
"addTranslation": [Function],
"addTranslationForLanguage": [Function],
"defaultLanguage": undefined,
"ignoreTranslateChildren": false,
"initialize": [Function],
"languages": Array [],
"renderToStaticMarkup": false,
"setActiveLanguage": [Function],
"translate": [Function],
}
}
id="Exp: SmartApp Title"
>
Missing translationId: Exp: SmartApp Title for language: \${ languageCode }
</WrappedTranslate>
</Translate>
</h4>
</Title>
<Description>
<p
className="Description-sc-83rdc7-0 kEyhQo"
>
<Translate
id="Exp: SmartApp Desc"
>
<WrappedTranslate
context={
Object {
"activeLanguage": undefined,
"addTranslation": [Function],
"addTranslationForLanguage": [Function],
"defaultLanguage": undefined,
"ignoreTranslateChildren": false,
"initialize": [Function],
"languages": Array [],
"renderToStaticMarkup": false,
"setActiveLanguage": [Function],
"translate": [Function],
}
}
id="Exp: SmartApp Desc"
>
Missing translationId: Exp: SmartApp Desc for language: \${ languageCode }
</WrappedTranslate>
</Translate>
</p>
</Description>
<Description>
<p
className="Description-sc-83rdc7-0 kEyhQo"
>
<Bold>
<b
className="Bold-sc-13i2l06-0 rbYzo"
>
<Translate
id="Exp: SmartApp Skill"
>
<WrappedTranslate
context={
Object {
"activeLanguage": undefined,
"addTranslation": [Function],
"addTranslationForLanguage": [Function],
"defaultLanguage": undefined,
"ignoreTranslateChildren": false,
"initialize": [Function],
"languages": Array [],
"renderToStaticMarkup": false,
"setActiveLanguage": [Function],
"translate": [Function],
}
}
id="Exp: SmartApp Skill"
>
Missing translationId: Exp: SmartApp Skill for language: \${ languageCode }
</WrappedTranslate>
</Translate>
</b>
</Bold>
</p>
</Description>
</li>
</Item__Container>
</Item>
</ul>
</List__Container>
</div>
</Col>
<Col
key="Brand360"
md={6}
>
<div
className="col-md-6"
>
<List__Container>
<ul
className="List__Container-sc-1s8tx8z-0 cmjuOV"
>
<Item
description="Exp: Brand360 Desc"
skill="Exp: Brand360 Skill"
title="Exp: Brand360 Title"
>
<Item__Container>
<li
className="Item__Container-yry9ye-0 kezTPZ"
>
<ExpIcon
name="workexp"
>
<Icon
className="ExpIcon-pd7zps-0 dhnVtU"
name="workexp"
>
<Icon__Symbol
className="ExpIcon-pd7zps-0 dhnVtU"
name="workexp"
>
<div
className="Icon__Symbol-sc-6mj7rl-0 hBwWez ExpIcon-pd7zps-0 dhnVtU"
name="workexp"
/>
</Icon__Symbol>
</Icon>
</ExpIcon>
<Title>
<h4
className="Title-sc-1d79yk1-0 cRQkWu"
>
<Translate
id="Exp: Brand360 Title"
>
<WrappedTranslate
context={
Object {
"activeLanguage": undefined,
"addTranslation": [Function],
"addTranslationForLanguage": [Function],
"defaultLanguage": undefined,
"ignoreTranslateChildren": false,
"initialize": [Function],
"languages": Array [],
"renderToStaticMarkup": false,
"setActiveLanguage": [Function],
"translate": [Function],
}
}
id="Exp: Brand360 Title"
>
Missing translationId: Exp: Brand360 Title for language: \${ languageCode }
</WrappedTranslate>
</Translate>
</h4>
</Title>
<Description>
<p
className="Description-sc-83rdc7-0 kEyhQo"
>
<Translate
id="Exp: Brand360 Desc"
>
<WrappedTranslate
context={
Object {
"activeLanguage": undefined,
"addTranslation": [Function],
"addTranslationForLanguage": [Function],
"defaultLanguage": undefined,
"ignoreTranslateChildren": false,
"initialize": [Function],
"languages": Array [],
"renderToStaticMarkup": false,
"setActiveLanguage": [Function],
"translate": [Function],
}
}
id="Exp: Brand360 Desc"
>
Missing translationId: Exp: Brand360 Desc for language: \${ languageCode }
</WrappedTranslate>
</Translate>
</p>
</Description>
<Description>
<p
className="Description-sc-83rdc7-0 kEyhQo"
>
<Bold>
<b
className="Bold-sc-13i2l06-0 rbYzo"
>
<Translate
id="Exp: Brand360 Skill"
>
<WrappedTranslate
context={
Object {
"activeLanguage": undefined,
"addTranslation": [Function],
"addTranslationForLanguage": [Function],
"defaultLanguage": undefined,
"ignoreTranslateChildren": false,
"initialize": [Function],
"languages": Array [],
"renderToStaticMarkup": false,
"setActiveLanguage": [Function],
"translate": [Function],
}
}
id="Exp: Brand360 Skill"
>
Missing translationId: Exp: Brand360 Skill for language: \${ languageCode }
</WrappedTranslate>
</Translate>
</b>
</Bold>
</p>
</Description>
</li>
</Item__Container>
</Item>
</ul>
</List__Container>
</div>
</Col>
</List>
</div>
</Row>
</div>
</Container>
</section>
Expand Down
Loading

0 comments on commit dfb6fc9

Please sign in to comment.