From f308125f184241218e81f77cd0428f43884f4555 Mon Sep 17 00:00:00 2001 From: asmuthuk Date: Thu, 8 Aug 2024 09:41:19 -0700 Subject: [PATCH] feat: updated test for undefined --- src/components/Menu/Menu.unit.test.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/Menu/Menu.unit.test.tsx b/src/components/Menu/Menu.unit.test.tsx index 958d7d8c1c..019b4bde67 100644 --- a/src/components/Menu/Menu.unit.test.tsx +++ b/src/components/Menu/Menu.unit.test.tsx @@ -127,6 +127,16 @@ describe('', () => { expect(element.getAttribute('role')).toBe('menu'); }); + it('should have role of menu when isGroupRole is undefined', () => { + expect.assertions(1); + + const element = mount() + .find(Menu) + .getDOMNode(); + + expect(element.getAttribute('role')).toBe('menu'); + }); + it('should have provided style when style is provided', () => { expect.assertions(1);