Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Fixes #13485 : Migrate 'components/tutorial/tutorial_tip' module and associated tests to TypeScript #4589

Merged
merged 10 commits into from
Jan 6, 2020
Prev Previous commit
Next Next commit
minor changes
  • Loading branch information
M-ZubairAhmed committed Dec 25, 2019
commit 0d99021700caf68f118cf65a56b997aa1ea25797
2 changes: 1 addition & 1 deletion components/sidebar/sidebar_tutorial_tip.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import React from 'react';
import {shallow} from 'enzyme';

import SidebarTutorialTip from 'components/sidebar/sidebar_tutorial_tip';
import SidebarTutorialTip from 'components/sidebar/sidebar_tutorial_tip.jsx';

describe('component/sidebar/SidebarTutorialTip', () => {
test('should match snapshot, without townSquare and without offTopic', () => {
Expand Down
5 changes: 1 addition & 4 deletions components/tutorial/tutorial_tip/tutorial_tip.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See LICENSE.txt for license information.

import React from 'react';
import {shallow, ReactWrapper, mount, ShallowWrapper} from 'enzyme';
import {shallow, ShallowWrapper} from 'enzyme';

// import {mountWithIntl} from 'tests/helpers/intl-test-helper';
M-ZubairAhmed marked this conversation as resolved.
Show resolved Hide resolved
import TutorialTip from 'components/tutorial/tutorial_tip/tutorial_tip';
Expand Down Expand Up @@ -33,9 +33,6 @@ describe('components/tutorial/tutorial_tip/tutorial_tip', () => {
const closeRhsMenu = jest.fn();

const props = {...requiredProps, actions: {closeRhsMenu, savePreferences}};

// const wrapper = mountWithIntl(<TutorialTip {...props}/>) as unknown as ReactWrapper<{}, {}, TutorialTip>;
// const wrapper = mount(<TutorialTip {...props}/>) as ReactWrapper<{}, {}, TutorialTip>;
const wrapper: ShallowWrapper<any, any, TutorialTip> = shallow(
<TutorialTip {...props}/>
);
Expand Down