Skip to content

Commit

Permalink
feat(selectiongroup): removed spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
shnaaz committed Sep 17, 2024
1 parent 9f59601 commit c2b119a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/Menu/Menu.utils.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { Item , Section, PartialNode } from '@react-stately/collections';
import { SelectionMode } from '@react-types/shared';
import { SelectionGroupProps } from './Menu.types';



// Mock the Section.getCollectionNode function
jest.mock('@react-stately/collections', () => ({
Section: {
getCollectionNode: jest.fn(),
Expand All @@ -19,12 +16,8 @@ const defaultProps = {
selectionMode: 'single' as Exclude<SelectionMode, 'none'>
};



describe('SelectionGroup', () => {

it('returns null', () => {

const result = SelectionGroup(defaultProps);
expect(result).toBeNull();
});
Expand All @@ -41,7 +34,6 @@ describe('SelectionGroup', () => {
{ key: 'two', value: 'Two' },
];

// Mock implementation of Section.getCollectionNode
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
(Section.getCollectionNode as jest.Mock).mockImplementation(function* () {
Expand Down

0 comments on commit c2b119a

Please sign in to comment.