@@ -49,7 +49,7 @@ describe('Panel', function () {
49
49
it ( 'Should have custom component header with anchor' , function ( ) {
50
50
let header = < h3 > Heading</ h3 > ,
51
51
instance = ReactTestUtils . renderIntoDocument (
52
- < Panel header = { header } collapsable = { true } > Panel content</ Panel >
52
+ < Panel header = { header } collapsible = { true } > Panel content</ Panel >
53
53
) ;
54
54
header = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'panel-heading' ) . getDOMNode ( ) ;
55
55
assert . equal ( header . firstChild . nodeName , 'H3' ) ;
@@ -68,21 +68,21 @@ describe('Panel', function () {
68
68
69
69
it ( 'Should have collapse classes' , function ( ) {
70
70
let instance = ReactTestUtils . renderIntoDocument (
71
- < Panel collapsable = { true } expanded = { true } > Panel content</ Panel >
71
+ < Panel collapsible = { true } expanded = { true } > Panel content</ Panel >
72
72
) ;
73
73
assert . ok ( instance . getDOMNode ( ) . querySelector ( '.panel-collapse.collapse.in' ) ) ;
74
74
} ) ;
75
75
76
76
it ( 'Should pass through dom properties' , function ( ) {
77
77
let instance = ReactTestUtils . renderIntoDocument (
78
- < Panel collapsable = { false } id = "testid" > Panel content</ Panel >
78
+ < Panel collapsible = { false } id = "testid" > Panel content</ Panel >
79
79
) ;
80
80
assert . equal ( instance . getDOMNode ( ) . id , 'testid' ) ;
81
81
} ) ;
82
82
83
83
it ( 'Should pass id to panel-collapse' , function ( ) {
84
84
let instance = ReactTestUtils . renderIntoDocument (
85
- < Panel collapsable = { true } id = "testid" header = "Heading" > Panel content</ Panel >
85
+ < Panel collapsible = { true } id = "testid" header = "Heading" > Panel content</ Panel >
86
86
) ;
87
87
assert . notOk ( instance . getDOMNode ( ) . id ) ;
88
88
let collapse = instance . getDOMNode ( ) . querySelector ( '.panel-collapse' ) ;
@@ -93,7 +93,7 @@ describe('Panel', function () {
93
93
94
94
it ( 'Should be open' , function ( ) {
95
95
let instance = ReactTestUtils . renderIntoDocument (
96
- < Panel collapsable = { true } expanded = { true } header = "Heading" > Panel content</ Panel >
96
+ < Panel collapsible = { true } expanded = { true } header = "Heading" > Panel content</ Panel >
97
97
) ;
98
98
let collapse = instance . getDOMNode ( ) . querySelector ( '.panel-collapse' ) ;
99
99
let anchor = instance . getDOMNode ( ) . querySelector ( '.panel-title a' ) ;
@@ -103,7 +103,7 @@ describe('Panel', function () {
103
103
104
104
it ( 'Should be closed' , function ( ) {
105
105
let instance = ReactTestUtils . renderIntoDocument (
106
- < Panel collapsable = { true } expanded = { false } header = "Heading" > Panel content</ Panel >
106
+ < Panel collapsible = { true } expanded = { false } header = "Heading" > Panel content</ Panel >
107
107
) ;
108
108
let collapse = instance . getDOMNode ( ) . querySelector ( '.panel-collapse' ) ;
109
109
let anchor = instance . getDOMNode ( ) . querySelector ( '.panel-title a' ) ;
@@ -113,7 +113,7 @@ describe('Panel', function () {
113
113
114
114
it ( 'Should be aria-expanded=true' , function ( ) {
115
115
let instance = ReactTestUtils . renderIntoDocument (
116
- < Panel collapsable = { true } expanded = { true } header = "Heading" > Panel content</ Panel >
116
+ < Panel collapsible = { true } expanded = { true } header = "Heading" > Panel content</ Panel >
117
117
) ;
118
118
let collapse = instance . getDOMNode ( ) . querySelector ( '.panel-collapse' ) ;
119
119
let anchor = instance . getDOMNode ( ) . querySelector ( '.panel-title a' ) ;
@@ -123,7 +123,7 @@ describe('Panel', function () {
123
123
124
124
it ( 'Should be aria-expanded=false' , function ( ) {
125
125
let instance = ReactTestUtils . renderIntoDocument (
126
- < Panel collapsable = { true } expanded = { false } header = "Heading" > Panel content</ Panel >
126
+ < Panel collapsible = { true } expanded = { false } header = "Heading" > Panel content</ Panel >
127
127
) ;
128
128
let collapse = instance . getDOMNode ( ) . querySelector ( '.panel-collapse' ) ;
129
129
let anchor = instance . getDOMNode ( ) . querySelector ( '.panel-title a' ) ;
@@ -137,15 +137,15 @@ describe('Panel', function () {
137
137
done ( ) ;
138
138
}
139
139
let instance = ReactTestUtils . renderIntoDocument (
140
- < Panel collapsable = { true } onSelect = { handleSelect } header = "Click me" eventKey = '1' > Panel content</ Panel >
140
+ < Panel collapsible = { true } onSelect = { handleSelect } header = "Click me" eventKey = '1' > Panel content</ Panel >
141
141
) ;
142
142
let title = ReactTestUtils . findRenderedDOMComponentWithClass ( instance , 'panel-title' ) ;
143
143
ReactTestUtils . Simulate . click ( title . getDOMNode ( ) . firstChild ) ;
144
144
} ) ;
145
145
146
146
it ( 'Should toggle when uncontrolled' , function ( ) {
147
147
let instance = ReactTestUtils . renderIntoDocument (
148
- < Panel collapsable = { true } defaultExpanded = { false } header = "Click me" > Panel content</ Panel >
148
+ < Panel collapsible = { true } defaultExpanded = { false } header = "Click me" > Panel content</ Panel >
149
149
) ;
150
150
151
151
assert . notOk ( instance . state . expanded ) ;
0 commit comments