@@ -73,14 +73,14 @@ describe('Carousel', function () {
7373 } ) ;
7474
7575 it ( 'Should show all controls on the first/last image if wrap is true' , function ( ) {
76- var instance = ReactTestUtils . renderIntoDocument (
76+ let instance = ReactTestUtils . renderIntoDocument (
7777 < Carousel activeIndex = { 0 } controls = { true } wrap = { true } >
7878 < CarouselItem ref = "item1" > Item 1 content</ CarouselItem >
7979 < CarouselItem ref = "item2" > Item 2 content</ CarouselItem >
8080 </ Carousel >
8181 ) ;
8282
83- var backButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'left' ) ;
83+ let backButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'left' ) ;
8484
8585 assert . ok ( backButton ) ;
8686 assert . equal ( backButton . props . href , '#prev' ) ;
@@ -92,22 +92,22 @@ describe('Carousel', function () {
9292 </ Carousel >
9393 ) ;
9494
95- var nextButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'right' ) ;
95+ let nextButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'right' ) ;
9696
9797 assert . ok ( nextButton ) ;
9898 assert . equal ( nextButton . props . href , '#next' ) ;
9999 } ) ;
100100
101101 it ( 'Should not show the prev button on the first image if wrap is false' , function ( ) {
102- var instance = ReactTestUtils . renderIntoDocument (
102+ let instance = ReactTestUtils . renderIntoDocument (
103103 < Carousel activeIndex = { 0 } controls = { true } wrap = { false } >
104104 < CarouselItem ref = "item1" > Item 1 content</ CarouselItem >
105105 < CarouselItem ref = "item2" > Item 2 content</ CarouselItem >
106106 </ Carousel >
107107 ) ;
108108
109- var backButtons = ReactTestUtils . scryRenderedDOMComponentsWithClass ( instance , 'left' ) ;
110- var nextButtons = ReactTestUtils . scryRenderedDOMComponentsWithClass ( instance , 'right' ) ;
109+ let backButtons = ReactTestUtils . scryRenderedDOMComponentsWithClass ( instance , 'left' ) ;
110+ let nextButtons = ReactTestUtils . scryRenderedDOMComponentsWithClass ( instance , 'right' ) ;
111111
112112 assert . equal ( backButtons . length , 0 ) ;
113113 assert . equal ( nextButtons . length , 1 ) ;
0 commit comments