Skip to content

Commit 2d52f47

Browse files
author
Karol Tatała
committed
IW-4876 | fix linter
1 parent 277687b commit 2d52f47

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/components/GlobalNavigation/components/Notifications/CardText.spec.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import ShallowRenderer from 'react-test-renderer/shallow';
32
import merge from 'lodash/merge';
43
import { render } from '@testing-library/react';
54

@@ -38,9 +37,7 @@ jest.mock('../../context/UserContext', () => ({
3837

3938
jest.mock('react-i18next', () => ({
4039
...jest.requireActual('react-i18next'),
41-
useTranslation: () => [jest.fn((key, params) => {
42-
return `${key}${params ? JSON.stringify(params) : ''}`;
43-
})],
40+
useTranslation: () => [jest.fn((key, params) => `${key}${params ? JSON.stringify(params) : ''}`)],
4441
}));
4542

4643
const defaultProps = {
@@ -63,7 +60,7 @@ const defaultProps = {
6360
function renderComponent(props) {
6461
const computedProps = merge({}, defaultProps, props);
6562

66-
const {container} = render(<CardText {...computedProps} />);
63+
const { container } = render(<CardText {...computedProps} />);
6764

6865
return container.firstChild;
6966
}

0 commit comments

Comments
 (0)