import React from 'react'; import { mount } from 'enzyme'; import Carousel from '..'; describe('Carousel', () => { it('should has innerSlider', () => { const wrapper = mount(
); const innerSlider = wrapper.node.innerSlider; const innerSliderFromRefs = wrapper.node.refs.slick.innerSlider; expect(innerSlider).toBe(innerSliderFromRefs); expect(typeof innerSlider.slickNext).toBe('function'); }); });