@momentum-ui/react
Version:
Cisco Momentum UI framework for ReactJs applications
22 lines (17 loc) • 564 B
JavaScript
import React from 'react';
import { shallow } from 'enzyme';
import MenuContent from '@momentum-ui/react/MenuContent';
describe('tests for <MenuContent />', () => {
it('should render a MenuContent', () => {
const wrapper = shallow(
<MenuContent>test</MenuContent>
);
expect(wrapper).toMatchSnapshot();
});
it('should apply className to MenuContent', () => {
const wrapper = shallow(
<MenuContent className="test">test</MenuContent>
);
expect(wrapper.find('.md-menu-content').hasClass('test')).toEqual(true);
});
});