text: var _jsxFileName="src/components/Carousel/Carousel.spec.js";var _reactNative=require("react-native");var _react=require("react");var _react2=_interopRequireDefault(_react);var _reactTestRenderer=require("react-test-renderer");var _reactTestRenderer2=_interopRequireDefault(_reactTestRenderer);var _Carousel=require("../Carousel");var _Carousel2=_interopRequireDefault(_Carousel);var _Theme=require("../Theme");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}it("should render correctly",function(){var images=["https://placehold.it/600/311112","https://placehold.it/600/59C480"];var component=_reactTestRenderer2.default.create(_react2.default.createElement(_Theme.Provider,{__source:{fileName:_jsxFileName,lineNumber:14}},_react2.default.createElement(_Carousel2.default,{autoplay:true,autoplayTimeout:5000,loop:true,index:0,width:400,height:400,__source:{fileName:_jsxFileName,lineNumber:15}},images.map(function(image,index){return function(image,index){return _react2.default.createElement(_reactNative.View,{key:index,__source:{fileName:_jsxFileName,lineNumber:25}},_react2.default.createElement(_reactNative.Image,{style:{width:400,height:400},source:{uri:image},__source:{fileName:_jsxFileName,lineNumber:26}}));};}))));var tree=component.toJSON();expect(tree).toMatchSnapshot();});it("should hide indicators",function(){var images=["https://placehold.it/600/311112","https://placehold.it/600/59C480"];var component=_reactTestRenderer2.default.create(_react2.default.createElement(_Theme.Provider,{__source:{fileName:_jsxFileName,lineNumber:46}},_react2.default.createElement(_Carousel2.default,{autoplay:true,autoplayTimeout:5000,loop:true,index:0,width:400,height:400,__source:{fileName:_jsxFileName,lineNumber:47}},images.map(function(image,index){return function(image,index){return _react2.default.createElement(_reactNative.View,{key:index,__source:{fileName:_jsxFileName,lineNumber:57}},_react2.default.createElement(_reactNative.Image,{style:{width:400,height:400},source:{uri:image},__source:{fileName:_jsxFileName,lineNumber:58}}));};}))));var tree=component.toJSON();expect(tree).toMatchSnapshot();});