@@ -133,12 +133,12 @@ describe('video', () => {
133133 } ) ;
134134
135135 it ( 'returns a component with it\'s ownProps' , ( ) => {
136- expect ( component . prop ( 'autoPlay' ) )
136+ expect ( component . find ( TestVideo ) . prop ( 'autoPlay' ) )
137137 . toBe ( true ) ;
138138 } ) ;
139139
140140 it ( 'returns a component with a videoEl prop' , ( ) => {
141- expect ( component . prop ( 'videoEl' ) )
141+ expect ( component . find ( TestVideo ) . prop ( 'videoEl' ) )
142142 . toBe ( videoEl ) ;
143143 } ) ;
144144
@@ -151,7 +151,7 @@ describe('video', () => {
151151 }
152152 } ;
153153 component . setState ( state ) ;
154- expect ( component . prop ( 'video' ) )
154+ expect ( component . find ( TestVideo ) . prop ( 'video' ) )
155155 . toEqual ( state ) ;
156156 } ) ;
157157
@@ -168,9 +168,9 @@ describe('video', () => {
168168 component . setState ( {
169169 paused : true
170170 } ) ;
171- expect ( component . prop ( 'state' ) . paused )
171+ expect ( component . find ( TestVideo ) . prop ( 'state' ) . paused )
172172 . toBe ( true ) ;
173- expect ( component . prop ( 'ownProps' ) . autoPlay )
173+ expect ( component . find ( TestVideo ) . prop ( 'ownProps' ) . autoPlay )
174174 . toBe ( true ) ;
175175 } ) ;
176176
@@ -187,7 +187,7 @@ describe('video', () => {
187187 ) ;
188188 component . instance ( ) . videoEl = videoEl ;
189189 component . instance ( ) . forceUpdate ( ) ;
190- component . prop ( 'togglePlay' ) ( ) ;
190+ component . find ( TestVideo ) . prop ( 'togglePlay' ) ( ) ;
191191 expect ( videoEl . play ) . toHaveBeenCalledWith ( 'testValue' ) ;
192192 } ) ;
193193
@@ -200,7 +200,7 @@ describe('video', () => {
200200 const component = shallow (
201201 < Component />
202202 ) ;
203- expect ( component . prop ( 'duplicateKey' ) ) . toBe ( 'mapVideoElToProps' ) ;
203+ expect ( component . find ( TestVideo ) . prop ( 'duplicateKey' ) ) . toBe ( 'mapVideoElToProps' ) ;
204204 } ) ;
205205
206206 it ( 'allows ownProps to take precedence over mapVideoElToProps and mapStateToProps' , ( ) => {
@@ -212,7 +212,7 @@ describe('video', () => {
212212 const component = shallow (
213213 < Component duplicateKey = "ownProps" />
214214 ) ;
215- expect ( component . prop ( 'duplicateKey' ) ) . toBe ( 'ownProps' ) ;
215+ expect ( component . find ( TestVideo ) . prop ( 'duplicateKey' ) ) . toBe ( 'ownProps' ) ;
216216 } ) ;
217217
218218 it ( 'allows cusomtisation of merging ownProps, mapVideoElToProps and mapStateToProps to change the merging precedence' , ( ) => {
@@ -225,7 +225,7 @@ describe('video', () => {
225225 const component = shallow (
226226 < Component duplicateKey = "ownProps" />
227227 ) ;
228- expect ( component . prop ( 'duplicateKey' ) ) . toBe ( 'mapVideoElToProps' ) ;
228+ expect ( component . find ( TestVideo ) . prop ( 'duplicateKey' ) ) . toBe ( 'mapVideoElToProps' ) ;
229229 } ) ;
230230 } ) ;
231231} ) ;
0 commit comments