Skip to content

Commit

Permalink
Adding comment in test file to clarify appendDataToMenu test purpose …
Browse files Browse the repository at this point in the history
…based on PR question
  • Loading branch information
eric-briscoe committed Nov 9, 2022
1 parent c4eb12f commit 1a25f33
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ test('renders with default props', async () => {
expect(clickHandler).toHaveBeenCalled();
});

/**
* Validate that the appendDataToMenu utility function used within the
* Action cell menu rendering works as expected
*/
test('appendDataToMenu utility', () => {
exampleMenuOptions.forEach(item => expect(item?.row).toBeUndefined());
const modifiedMenuOptions = appendDataToMenu(exampleMenuOptions, exampleRow);
Expand Down

0 comments on commit 1a25f33

Please sign in to comment.