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