Skip to content

Commit fba46d1

Browse files
committed
require -> import
1 parent 7ce4c08 commit fba46d1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/components/HelpMenu/index.spec.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fireEvent, render, screen } from '@testing-library/react';
22
import { BodyPortalSlotsContext } from '../BodyPortalSlotsContext';
3-
import { HelpMenu, HelpMenuItem, HelpMenuProps } from '.';
3+
import { HelpMenu, HelpMenuItem, HelpMenuProps, NewTabIcon } from '.';
44
import { NavBar } from '../NavBar';
55
import { ChatConfiguration } from './hooks';
66

@@ -244,13 +244,11 @@ describe('HelpMenu', () => {
244244

245245
it('exports NewTabIcon component', () => {
246246
// The NewTabIcon is exported for use in other components
247-
const { NewTabIcon } = require('./index');
248247
expect(NewTabIcon).toBeDefined();
249248
expect(typeof NewTabIcon).toBe('function');
250249
});
251250

252251
it('renders NewTabIcon with correct SVG attributes', () => {
253-
const { NewTabIcon } = require('./index');
254252
const { container } = render(<NewTabIcon />);
255253

256254
const svg = container.querySelector('svg');

0 commit comments

Comments
 (0)