yoda-common-boilerplate
Version:
Repository of all JCP reusable atoms, molecules and organisms
25 lines (18 loc) • 599 B
JavaScript
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import 'ignore-styles';
import DepartmentCard from '../DepartmentCard.jsx';
describe('<DepartmentCard />', () => {
let wrapper;
beforeEach(() => {
//Shallow Rendering component in before each to eliminate duplication
wrapper = shallow(<DepartmentCard />);
});
it('DepartmentCard component should exist ', () => {
expect(wrapper).to.exist;
});
it('DepartmentCard component should contain an image component', () => {
expect(wrapper.find('image')).to.exist;
});
});