From 6ab74d42162d30dcc84979ef673d209086fcec35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 7 Jun 2017 10:58:59 +0100 Subject: [PATCH] test(joyent-cp-frontend): update Header snapshots --- .../test/unit/__snapshots__/header.js.snap | 146 +++--------------- packages/cp-frontend/test/unit/header.js | 4 +- 2 files changed, 21 insertions(+), 129 deletions(-) diff --git a/packages/cp-frontend/test/unit/__snapshots__/header.js.snap b/packages/cp-frontend/test/unit/__snapshots__/header.js.snap index ce823761..3ba63072 100644 --- a/packages/cp-frontend/test/unit/__snapshots__/header.js.snap +++ b/packages/cp-frontend/test/unit/__snapshots__/header.js.snap @@ -1,122 +1,14 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders
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; - } -} -
-
without throwing 1`] = ` src="test-file-mock" /> -
-
-

-

-
-

-

+ +
+
+

+

+
+

`; diff --git a/packages/cp-frontend/test/unit/header.js b/packages/cp-frontend/test/unit/header.js index 51ef2b1f..194a7f57 100644 --- a/packages/cp-frontend/test/unit/header.js +++ b/packages/cp-frontend/test/unit/header.js @@ -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
without throwing', () => { const tree = renderer.create(
).toJSON(); - expect(tree).toMatchStyledComponentsSnapshot(); + expect(tree).toMatchSnapshot(); });