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

Commit

Permalink
snap update
Browse files Browse the repository at this point in the history
  • Loading branch information
AH106586Harika authored and AH106586Harika committed Oct 17, 2023
1 parent 9e8e1bf commit 21ad9ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/terra-dropdown-button/tests/jest/DropdownButton.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,21 @@ import ThemeContextProvider from 'terra-theme-context/lib/ThemeContextProvider';
import { IntlProvider } from 'react-intl';
/* eslint-disable-next-line import/no-extraneous-dependencies */
import { shallowWithIntl, mountWithIntl } from 'terra-enzyme-intl';
// eslint-disable-next-line import/no-extraneous-dependencies
import { v4 as uuidv4 } from 'uuid';
import translationsFile from '../../translations/en.json';
/* eslint-disable-next-line import/no-extraneous-dependencies */
import DropdownButton, { Item, Variants } from '../../src/DropdownButton';

let mockSpyUuid;
beforeAll(() => {
mockSpyUuid = jest.spyOn(uuidv4, 'v4').mockReturnValue('00000000-0000-0000-0000-000000000000');
});

afterAll(() => {
mockSpyUuid.mockRestore();
});

describe('Dropdown Button', () => {
it('should render a default dropdown type', () => {
const wrapper = shallowWithIntl(
Expand Down

0 comments on commit 21ad9ba

Please sign in to comment.