From cbcfa8bbf7c37c9b2dc86e4106301b2a3d1d104e Mon Sep 17 00:00:00 2001 From: SP1556422 Date: Wed, 10 Apr 2024 15:14:47 +0200 Subject: [PATCH] lint fixes, remove redundant snapshot --- .../tests/jest/ApplicationTabs.test.jsx | 4 +- .../ApplicationTabs.test.jsx.snap | 37 ------------------- .../tests/jest/testLinkConfig.js | 12 +++--- 3 files changed, 8 insertions(+), 45 deletions(-) diff --git a/packages/terra-application-links/tests/jest/ApplicationTabs.test.jsx b/packages/terra-application-links/tests/jest/ApplicationTabs.test.jsx index a65e1674e92..6cc48d2d692 100644 --- a/packages/terra-application-links/tests/jest/ApplicationTabs.test.jsx +++ b/packages/terra-application-links/tests/jest/ApplicationTabs.test.jsx @@ -1,10 +1,10 @@ import React from 'react'; import ThemeContextProvider from 'terra-theme-context/lib/ThemeContextProvider'; +import { BrowserRouter } from 'react-router-dom'; import ApplicationTabs from '../../src/tabs/ApplicationTabs'; import testLinkConfig from './testLinkConfig'; import testLinksWithIconsConfig from './testLinksWithIconsConfig'; -import { BrowserRouter } from 'react-router-dom'; // Snapshot tests it('should render ApplicationTabs with links and alignment', () => { @@ -17,7 +17,7 @@ it('should trigger onTabClick handler', () => { const wrapper = enzymeIntl.mountWithIntl( - + , ); wrapper.find('.tab').first().simulate('click'); diff --git a/packages/terra-application-links/tests/jest/__snapshots__/ApplicationTabs.test.jsx.snap b/packages/terra-application-links/tests/jest/__snapshots__/ApplicationTabs.test.jsx.snap index d88d3fee49b..1ea81841ff1 100644 --- a/packages/terra-application-links/tests/jest/__snapshots__/ApplicationTabs.test.jsx.snap +++ b/packages/terra-application-links/tests/jest/__snapshots__/ApplicationTabs.test.jsx.snap @@ -175,40 +175,3 @@ exports[`should render ApplicationTabs with links and alignment 1`] = ` /> `; - -exports[`should render ApplicationTabs with links and alignment and onTabClick handler 1`] = ` -
- -
-`; diff --git a/packages/terra-application-links/tests/jest/testLinkConfig.js b/packages/terra-application-links/tests/jest/testLinkConfig.js index 0bb6098ba8d..465f3a1fc7f 100644 --- a/packages/terra-application-links/tests/jest/testLinkConfig.js +++ b/packages/terra-application-links/tests/jest/testLinkConfig.js @@ -1,10 +1,10 @@ const testLinkConfig = [ - { id: 'link1', path: '/test1', text: 'test 1', icon: jest.fn() }, - { id: 'link2', path: '/test2', text: 'test 2', icon: jest.fn() }, - { id: 'link3', path: '/test3', text: 'test 3', icon: jest.fn() }, - { id: 'link4', path: '/test4', text: 'test 4', icon: jest.fn() }, - { id: 'link5', path: '/test5', text: 'test 5', icon: jest.fn() }, - { id: 'link6', path: '/test6', text: 'test 6', icon: jest.fn() }, + { path: '/test1', text: 'test 1' }, + { path: '/test2', text: 'test 2' }, + { path: '/test3', text: 'test 3' }, + { path: '/test4', text: 'test 4' }, + { path: '/test5', text: 'test 5' }, + { path: '/test6', text: 'test 6' }, ]; export default testLinkConfig;