@@ -73,14 +73,14 @@ describe('Carousel', function () {
73
73
} ) ;
74
74
75
75
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 (
77
77
< Carousel activeIndex = { 0 } controls = { true } wrap = { true } >
78
78
< CarouselItem ref = "item1" > Item 1 content</ CarouselItem >
79
79
< CarouselItem ref = "item2" > Item 2 content</ CarouselItem >
80
80
</ Carousel >
81
81
) ;
82
82
83
- var backButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'left' ) ;
83
+ let backButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'left' ) ;
84
84
85
85
assert . ok ( backButton ) ;
86
86
assert . equal ( backButton . props . href , '#prev' ) ;
@@ -92,22 +92,22 @@ describe('Carousel', function () {
92
92
</ Carousel >
93
93
) ;
94
94
95
- var nextButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'right' ) ;
95
+ let nextButton = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'right' ) ;
96
96
97
97
assert . ok ( nextButton ) ;
98
98
assert . equal ( nextButton . props . href , '#next' ) ;
99
99
} ) ;
100
100
101
101
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 (
103
103
< Carousel activeIndex = { 0 } controls = { true } wrap = { false } >
104
104
< CarouselItem ref = "item1" > Item 1 content</ CarouselItem >
105
105
< CarouselItem ref = "item2" > Item 2 content</ CarouselItem >
106
106
</ Carousel >
107
107
) ;
108
108
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' ) ;
111
111
112
112
assert . equal ( backButtons . length , 0 ) ;
113
113
assert . equal ( nextButtons . length , 1 ) ;
0 commit comments