From 383197a4c17a16b0b78fe5dfadadd541571f42dd Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 24 Mar 2019 13:04:06 -0400 Subject: [PATCH] Updating Footer to use react-testing-library --- .../Footer/__snapshots__/test.js.snap | 78 ++++++++++--------- src/components/Footer/test.js | 6 +- 2 files changed, 46 insertions(+), 38 deletions(-) diff --git a/src/components/Footer/__snapshots__/test.js.snap b/src/components/Footer/__snapshots__/test.js.snap index 2ede97f..26bebd6 100644 --- a/src/components/Footer/__snapshots__/test.js.snap +++ b/src/components/Footer/__snapshots__/test.js.snap @@ -1,42 +1,50 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Footer rendering 1`] = ` - + Generated images licensed: + + TRANSLATE(Creative Commons CC-BY-3.0 License) + + + + +
+ abc-123 +
+ + `; diff --git a/src/components/Footer/test.js b/src/components/Footer/test.js index e681fc2..2e7bf3a 100644 --- a/src/components/Footer/test.js +++ b/src/components/Footer/test.js @@ -1,14 +1,14 @@ import React from 'react'; -import { shallow } from 'enzyme'; +import { render } from 'react-testing-library'; import { mockT } from 'i18n'; import { Footer } from 'components/Footer'; describe('Footer', () => { test('rendering', () => { - const component = shallow( + const { asFragment } = render(