Skip to content

Commit d578935

Browse files
committed
Build(yarn): update dependencies
1 parent 02c7309 commit d578935

File tree

54 files changed

+847
-815
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+847
-815
lines changed

frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ConnectedRouter } from 'connected-react-router';
22
import { History } from 'history';
3-
import * as React from 'react';
3+
import React from 'react';
44
import { I18nextProvider } from 'react-i18next';
55
import { Provider } from 'react-redux';
66
import { Store } from 'redux';

frontend/src/components/Dropdown/__tests__/dropdown.spec.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import 'materialize-css';
2-
import * as React from 'react';
2+
import React from 'react';
33
import { MemoryRouter } from 'react-router';
4-
import * as TestRenderer from 'react-test-renderer';
4+
import TestRenderer from 'react-test-renderer';
55

6+
import { i18nMock, tMock } from 'utils/mocks';
67
import { Dropdown } from '../dropdown';
78

8-
const tMock = (k: string) => k;
9-
const i18nMock: any = {
10-
addResourceBundle: () => { return; },
11-
};
12-
139
describe('Dropdown', () => {
1410
it('should renders correctly', () => {
1511
const renderer = TestRenderer.create(

frontend/src/components/Dropdown/dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react';
1+
import React from 'react';
22
import { InjectedI18nProps, InjectedTranslateProps, translate } from 'react-i18next';
33
import { Link } from 'react-router-dom';
44

frontend/src/components/Footer/__tests__/footer.spec.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
import * as React from 'react';
2-
import * as TestRenderer from 'react-test-renderer';
1+
import React from 'react';
2+
import TestRenderer from 'react-test-renderer';
33

4+
import { i18nMock, tMock } from 'utils/mocks';
45
import { Footer } from '../footer';
56

6-
const tMock = (k: string) => k;
7-
const i18nMock: any = {
8-
addResourceBundle: () => { return; },
9-
};
10-
117
describe('Footer', () => {
128
it('should renders correctly', () => {
139
const renderer = TestRenderer.create(

frontend/src/components/Footer/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react';
1+
import React from 'react';
22
import { InjectedI18nProps, InjectedTranslateProps, translate } from 'react-i18next';
33

44
import i18ns from './i18n';

frontend/src/components/Header/__tests__/header.spec.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import 'materialize-css';
2-
import * as React from 'react';
2+
import React from 'react';
33
import { MemoryRouter } from 'react-router';
4-
import * as TestRenderer from 'react-test-renderer';
4+
import TestRenderer from 'react-test-renderer';
55

6+
import { i18nMock, tMock } from 'utils/mocks';
67
import { Header } from '../header';
78

8-
jest.mock('components/Dropdown', () => ({ default: 'Dropdown' }));
9-
const tMock = (k: string) => k;
10-
const i18nMock: any = {
11-
addResourceBundle: () => { return; },
12-
};
9+
jest.mock('components/Dropdown', () => 'Dropdown');
1310

1411
describe('Header', () => {
1512
it('should renders correctly', () => {

frontend/src/components/Header/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react';
1+
import React from 'react';
22
import { InjectedI18nProps, InjectedTranslateProps, translate } from 'react-i18next';
33
import { connect } from 'react-redux';
44
import { Link } from 'react-router-dom';

frontend/src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createBrowserHistory } from 'history';
2-
import * as OfflinePluginRuntime from 'offline-plugin/runtime';
3-
import * as React from 'react';
4-
import * as ReactDom from 'react-dom';
2+
import OfflinePluginRuntime from 'offline-plugin/runtime';
3+
import React from 'react';
4+
import ReactDom from 'react-dom';
55
import { AppContainer } from 'react-hot-loader';
66

77
import App from 'App';

frontend/src/pages/HomePage/__tests__/homePage.spec.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import 'materialize-css';
2-
import * as React from 'react';
3-
import * as TestRenderer from 'react-test-renderer';
2+
import React from 'react';
3+
import TestRenderer from 'react-test-renderer';
44

5+
import { i18nMock, tMock } from 'utils/mocks';
56
import { HomePage } from '../homePage';
67

7-
jest.mock('../components/Carousel', () => ({ default: 'Carousel' }));
8-
jest.mock('../components/Pushpin', () => ({ default: 'Pushpin' }));
9-
jest.mock('../components/TranslationButton', () => ({ default: 'TranslationButton' }));
10-
const tMock = (k: string) => k;
11-
const i18nMock: any = {
12-
addResourceBundle: () => { return; },
13-
};
8+
jest.mock('../components/Carousel', () => 'Carousel');
9+
jest.mock('../components/Pushpin', () => 'Pushpin');
10+
jest.mock('../components/TranslationButton', () => 'TranslationButton');
1411

1512
describe('HomePage', () => {
1613
it('should renders correctly', () => {

frontend/src/pages/HomePage/components/Carousel/__tests__/carousel.spec.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import 'materialize-css';
2-
import * as React from 'react';
3-
import * as TestRenderer from 'react-test-renderer';
2+
import React from 'react';
3+
import TestRenderer from 'react-test-renderer';
44

5+
import { i18nMock, tMock } from 'utils/mocks';
56
import { Carousel } from '../carousel';
67

7-
const tMock = (k: string) => k;
8-
const i18nMock: any = {
9-
addResourceBundle: () => { return; },
10-
};
11-
128
describe('Carousel', () => {
139
it('should renders correctly', () => {
1410
const renderer = TestRenderer.create(

0 commit comments

Comments
 (0)