Skip to content

Commit

Permalink
test(storybook): fix font imports, update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
BradenM committed Dec 22, 2019
1 parent 47d4c2f commit 7e1337c
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 131 deletions.
12 changes: 8 additions & 4 deletions .storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ import { withKnobs } from '@storybook/addon-knobs/react';
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
import { addDecorator, addParameters, configure } from '@storybook/react';
import { withHTML } from '@whitespace/storybook-addon-html/react';
// fonts
import 'typeface-montserrat';
import 'typeface-poppins';
import 'typeface-roboto';
/*
* app fonts
* jest requires 'index.css' for import to be mocked.
* see @ https://github.com/facebook/jest/issues/8988
*/
import 'typeface-montserrat/index.css';
import 'typeface-poppins/index.css';
import 'typeface-roboto/index.css';
// styles
import '../app/style/custom.scss';
import './storybook.css';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`<Hero /> Should render and match the snapshot 1`] = `
class="pb-3 my-auto col-6"
>
<h1
class="Title-sc-3abvrr-0 Hero__HeroTitle-sc-1ele3ck-1 bqYlOi mb-0 font-weight-bold display-1 mb-0 font-weight-bold"
class="Title-sc-3abvrr-0 Hero__HeroTitle-sc-1ele3ck-1 bVtUDZ mb-0 font-weight-bold display-1 mb-0 font-weight-bold"
color="#fefefe"
size="1"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`<HomeHero /> Should render and match the snapshot 1`] = `
class="pb-3 my-auto col-6"
>
<h1
class="Title-sc-3abvrr-0 Hero__HeroTitle-sc-1ele3ck-1 bqYlOi mb-0 font-weight-bold display-1 mb-0 font-weight-bold"
class="Title-sc-3abvrr-0 Hero__HeroTitle-sc-1ele3ck-1 bVtUDZ mb-0 font-weight-bold display-1 mb-0 font-weight-bold"
color="#fefefe"
size="1"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`<HomeLayout /> Should render and match the snapshot 1`] = `
class="banner-text text-center"
>
<p
class=" text-body m-0 p-1"
class="Text__StyledText-sc-1foatad-0 ckNvnb text-body m-0 p-1"
>
banner content
</p>
Expand Down Expand Up @@ -232,7 +232,7 @@ exports[`<HomeLayout /> Should render and match the snapshot 1`] = `
class="pb-3 my-auto col-6"
>
<h1
class="Title-sc-3abvrr-0 Hero__HeroTitle-sc-1ele3ck-1 bqYlOi mb-0 font-weight-bold display-1 mb-0 font-weight-bold"
class="Title-sc-3abvrr-0 Hero__HeroTitle-sc-1ele3ck-1 bVtUDZ mb-0 font-weight-bold display-1 mb-0 font-weight-bold"
color="#fefefe"
size="1"
>
Expand Down Expand Up @@ -279,12 +279,12 @@ exports[`<HomeLayout /> Should render and match the snapshot 1`] = `
class="p-3 col-md-7 col-9"
>
<p
class="h3 text-light text-justify text-center mb-3"
class="Text__StyledText-sc-1foatad-0 ckNvnb h3 text-light text-justify text-center mb-3"
>
Subscribe to our Newsletter
</p>
<p
class=" text-light text-center m-0"
class="Text__StyledText-sc-1foatad-0 ckNvnb text-light text-center m-0"
>
Don't miss out on any deals and stay up to date with the latest trends.
</p>
Expand Down
Loading

0 comments on commit 7e1337c

Please sign in to comment.