-
Notifications
You must be signed in to change notification settings - Fork 45
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
20 changed files
with
542 additions
and
135 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
20 changes: 19 additions & 1 deletion
20
src/app/components/FatalErrorHandler/__tests__/__snapshots__/index.test.tsx.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,3 +1,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<FatalErrorHandler /> should be null without an error 1`] = `null`; | ||
exports[`<FatalErrorHandler /> should be null without an error 1`] = ` | ||
.c0 { | ||
font-family: Rubik; | ||
font-size: 18px; | ||
line-height: 24px; | ||
background-color: #ffffff; | ||
color: #444444; | ||
box-sizing: border-box; | ||
-webkit-text-size-adjust: 100%; | ||
-ms-text-size-adjust: 100%; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
<div | ||
class="c0" | ||
style="min-height: 100vh;" | ||
/> | ||
`; |
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
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
33 changes: 33 additions & 0 deletions
33
src/app/components/ResponsiveLayer/__tests__/__snapshots__/index.test.tsx.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,33 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<Layer /> should match snapshot 1`] = ` | ||
.c0 { | ||
font-family: Rubik; | ||
font-size: 18px; | ||
line-height: 24px; | ||
background-color: #ffffff; | ||
color: #444444; | ||
box-sizing: border-box; | ||
-webkit-text-size-adjust: 100%; | ||
-ms-text-size-adjust: 100%; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
<div | ||
class="c0" | ||
style="min-height: 100vh;" | ||
/> | ||
`; |
27 changes: 27 additions & 0 deletions
27
src/app/components/ResponsiveLayer/__tests__/index.test.tsx
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,27 @@ | ||
import { render } from '@testing-library/react' | ||
import { Layer } from 'grommet' | ||
import * as React from 'react' | ||
import { ThemeProvider } from 'styles/theme/ThemeProvider' | ||
import { Provider } from 'react-redux' | ||
import { configureAppStore } from 'store/configureStore' | ||
|
||
const renderComponent = store => | ||
render( | ||
<Provider store={store}> | ||
<ThemeProvider> | ||
<Layer /> | ||
</ThemeProvider> | ||
</Provider>, | ||
) | ||
|
||
describe('<Layer />', () => { | ||
let store: ReturnType<typeof configureAppStore> | ||
|
||
beforeEach(() => { | ||
store = configureAppStore() | ||
}) | ||
it('should match snapshot', () => { | ||
const component = renderComponent(store) | ||
expect(component.container.firstChild).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
56 changes: 55 additions & 1 deletion
56
...p/components/Toolbar/Features/AccountSelector/__tests__/__snapshots__/index.test.tsx.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,3 +1,57 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<AccountSelector /> should match snapshot 1`] = `null`; | ||
exports[`<AccountSelector /> should match snapshot 1`] = ` | ||
.c0 { | ||
font-family: Rubik; | ||
font-size: 18px; | ||
line-height: 24px; | ||
background-color: #ffffff; | ||
color: #444444; | ||
box-sizing: border-box; | ||
-webkit-text-size-adjust: 100%; | ||
-ms-text-size-adjust: 100%; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
@media only screen and (max-width:768px) { | ||
} | ||
<div | ||
class="c0" | ||
style="min-height: 100vh;" | ||
/> | ||
`; |
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
Oops, something went wrong.