1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

test(joyent-cp-frontend): update Header snapshots

This commit is contained in:
Sérgio Ramos 2017-06-07 10:58:59 +01:00 committed by Judit Greskovits
parent 4ca5fc4f3b
commit 6ab74d4216
2 changed files with 21 additions and 129 deletions

View File

@ -1,122 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders <Header /> without throwing 1`] = `
.FqmtD {
box-sizing: border-box;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex: 0 1 auto;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -0.5rem;
margin-left: -0.5rem;
}
.bpmDrC {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.dPgIpY {
box-sizing: border-box;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.eBVNKv {
background-color: ;
padding: 0.9375rem 1.125rem 0.75rem 1.125rem;
}
.ejNIBm {
color: ;
font-weight: 600;
margin: 0.1875rem 0 0 0;
}
@media only screen and (min-width: 0em) {
.bpmDrC {
-webkit-flex-basis: 50%;
-ms-flex-basis: 50%;
flex-basis: 50%;
max-width: 50%;
display: block;
}
}
@media only screen and (min-width: 48em) {
.bpmDrC {
-webkit-flex-basis: 66.66666666666667%;
-ms-flex-basis: 66.66666666666667%;
flex-basis: 66.66666666666667%;
max-width: 66.66666666666667%;
display: block;
}
}
@media only screen and (min-width: 64em) {
.bpmDrC {
-webkit-flex-basis: 83.33333333333334%;
-ms-flex-basis: 83.33333333333334%;
flex-basis: 83.33333333333334%;
max-width: 83.33333333333334%;
display: block;
}
}
@media only screen and (min-width: 0em) {
.dPgIpY {
-webkit-flex-basis: 25%;
-ms-flex-basis: 25%;
flex-basis: 25%;
max-width: 25%;
display: block;
}
}
@media only screen and (min-width: 48em) {
.dPgIpY {
-webkit-flex-basis: 16.666666666666668%;
-ms-flex-basis: 16.666666666666668%;
flex-basis: 16.666666666666668%;
max-width: 16.666666666666668%;
display: block;
}
}
@media only screen and (min-width: 64em) {
.dPgIpY {
-webkit-flex-basis: 8.333333333333334%;
-ms-flex-basis: 8.333333333333334%;
flex-basis: 8.333333333333334%;
max-width: 8.333333333333334%;
display: block;
}
}
<div
className="sc-bxivhb eBVNKv"
className="header__Header-cywcLi fAWQXE"
>
<div
className="sc-bwzfXH FqmtD"
className="brand__Box-cSEQoZ eVSukw"
>
<div
className="sc-htpNat bpmDrC"
<h2
className="sc-chPdSV giFJbY"
>
<a
href="/"
@ -127,21 +19,21 @@ exports[`renders <Header /> without throwing 1`] = `
src="test-file-mock"
/>
</a>
</h2>
</div>
<div
className="sc-htpNat dPgIpY"
className="item__Box-hzIdkQ hnPDgK"
>
<p
className="sc-ifAKCX ejNIBm p-eFQyuj gOKtOX"
className="sc-kgoBCf dYRxpA"
/>
</div>
<div
className="sc-htpNat dPgIpY"
className="item__Box-hzIdkQ hnPDgK"
>
<p
className="sc-ifAKCX ejNIBm p-eFQyuj gOKtOX"
className="sc-kgoBCf dYRxpA"
/>
</div>
</div>
</div>
`;

View File

@ -2,7 +2,7 @@
* @jest-environment node
*/
import 'jest-styled-components';
// import 'jest-styled-components';
import React from 'react';
import renderer from 'react-test-renderer';
@ -11,5 +11,5 @@ import { Router } from './mocks';
it('renders <Header /> without throwing', () => {
const tree = renderer.create(<Router><Header /></Router>).toJSON();
expect(tree).toMatchStyledComponentsSnapshot();
expect(tree).toMatchSnapshot();
});