-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,463 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import { render } from 'react-testing-library' | ||
import Container from '../components/Container' | ||
|
||
describe('Container component', () => { | ||
it('should render', () => { | ||
const component = render(<Container />) | ||
expect(component).toBeTruthy() | ||
}) | ||
|
||
it('shoult match snapshot', () => { | ||
const component = render(<Container />) | ||
expect(component.asFragment()).toMatchSnapshot() | ||
}) | ||
}) |
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,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Container component shoult match snapshot 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
style="background-color: rgb(206, 206, 206); padding: 1rem;" | ||
/> | ||
</DocumentFragment> | ||
`; |
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,13 @@ | ||
import React, { FunctionComponent } from 'react' | ||
|
||
interface ContainerProps {} | ||
|
||
const Container: FunctionComponent<ContainerProps> = ({ children }) => { | ||
return ( | ||
<div style={{ backgroundColor: '#cecece', padding: '1rem' }}> | ||
{children} | ||
</div> | ||
) | ||
} | ||
|
||
export default Container |
Oops, something went wrong.