@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
16 lines (13 loc) • 549 B
JavaScript
import React from 'react';
import { shallow, mount } from 'enzyme';
import { MenuContent } from '@momentum-ui/react-collaboration';
describe('tests for <MenuContent />', () => {
it('should render a MenuContent', () => {
const wrapper = mount(<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);
});
});