mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +08:00
14 lines
450 B
JavaScript
14 lines
450 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import Carousel from '..';
|
|
|
|
describe('Carousel', () => {
|
|
it('should has innerSlider', () => {
|
|
const wrapper = mount(<Carousel><div /></Carousel>);
|
|
const { innerSlider } = wrapper.instance();
|
|
const innerSliderFromRefs = wrapper.instance().slick.innerSlider;
|
|
expect(innerSlider).toBe(innerSliderFromRefs);
|
|
expect(typeof innerSlider.slickNext).toBe('function');
|
|
});
|
|
});
|