From f11c41b05e70a586d928612a28615cc317a8b706 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 24 Mar 2019 14:32:11 -0400 Subject: [PATCH] Updating LocaleSwitcher to use react-testing-library --- .../LocaleSwitcher/__snapshots__/test.js.snap | 58 ++++++++++--------- src/components/LocaleSwitcher/index.js | 5 +- src/components/LocaleSwitcher/test.js | 37 +++++++----- 3 files changed, 56 insertions(+), 44 deletions(-) diff --git a/src/components/LocaleSwitcher/__snapshots__/test.js.snap b/src/components/LocaleSwitcher/__snapshots__/test.js.snap index b5b32fb..87b5109 100644 --- a/src/components/LocaleSwitcher/__snapshots__/test.js.snap +++ b/src/components/LocaleSwitcher/__snapshots__/test.js.snap @@ -1,34 +1,36 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`LocaleSwitcher rendering 1`] = ` - + + + + + + + `; diff --git a/src/components/LocaleSwitcher/index.js b/src/components/LocaleSwitcher/index.js index 07d49de..09679cb 100644 --- a/src/components/LocaleSwitcher/index.js +++ b/src/components/LocaleSwitcher/index.js @@ -38,7 +38,10 @@ export class LocaleSwitcher extends React.PureComponent { return