import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { mount } from 'enzyme'; import { Nav } from '@patternfly/react-core'; import NavExpandableGroup from '../../src/components/NavExpandableGroup'; describe('NavExpandableGroup', () => { test('initialization and render', () => { const component = mount( ).find('NavExpandableGroup').instance(); expect(component.navItemPaths).toEqual(['/foo', '/bar', '/fiz']); expect(component.isActiveGroup()).toEqual(true); }); });