From 4aa33055120efa3ca3b4f7c9b5b6417c0f25b3ac Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 12 Aug 2019 13:04:53 +0300 Subject: Remove LoginButton test --- vnext/src/ui/__tests__/LoginButton.test.js | 21 --- .../__snapshots__/LoginButton.test.js.snap | 178 --------------------- 2 files changed, 199 deletions(-) delete mode 100644 vnext/src/ui/__tests__/LoginButton.test.js delete mode 100644 vnext/src/ui/__tests__/__snapshots__/LoginButton.test.js.snap (limited to 'vnext/src/ui/__tests__') diff --git a/vnext/src/ui/__tests__/LoginButton.test.js b/vnext/src/ui/__tests__/LoginButton.test.js deleted file mode 100644 index da80abb01..000000000 --- a/vnext/src/ui/__tests__/LoginButton.test.js +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react'; - -import LoginButton from '../LoginButton'; -import { create, act } from 'react-test-renderer'; - -test('Login button and form are renders correctly', () => { - var button = null; - act(() => { - button = create( - { }} /> - ); - }); - let link = button.toJSON(); - expect(link).toMatchSnapshot(); - - act(() => { - button.root.findByType('a').props.onClick(); - }); - let modal = button.toJSON(); - expect(modal).toMatchSnapshot(); -}); diff --git a/vnext/src/ui/__tests__/__snapshots__/LoginButton.test.js.snap b/vnext/src/ui/__tests__/__snapshots__/LoginButton.test.js.snap deleted file mode 100644 index cd08b1b4a..000000000 --- a/vnext/src/ui/__tests__/__snapshots__/LoginButton.test.js.snap +++ /dev/null @@ -1,178 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Login button and form are renders correctly 1`] = ` - -
- ", - } - } - /> -
- - Log in - -
-`; - -exports[`Login button and form are renders correctly 2`] = ` -Array [ - -
- ", - } - } - /> -
- - Log in - -
, -
-
-
-
-
- ", - } - } - /> -
-
-
-
-

- Please, introduce yourself: -

-
- -
- ", - } - } - /> -
- Log in -
- -
- ", - } - } - /> -
- Log in -
-
-

- Already registered? -

-
- -
- -
- -
-
-
-
, -] -`; -- cgit v1.2.3