@@ -169,21 +169,21 @@ describe('StrapeBinder.jsx', () => {
169169 } ;
170170 const dir = 'left' ;
171171 const cb = ( ) => null ;
172- const exitCb = ( ) => null ;
172+ const enterCb = ( ) => null ;
173173 this . mock ( strape )
174174 . expects ( 'calculateNewState' )
175175 . once ( )
176176 . withArgs ( dir ) ;
177177 const updateSelectedIdSpy = this . spy ( actions , 'updateSelectedId' ) ;
178178 const execCbSpy = this . spy ( funcHandler , 'execCb' ) ;
179- const exitCbSpy = this . spy ( funcHandler , 'exitTo ' ) ;
180- strape . performAction ( dir , cb , exitCb ) ;
179+ const enterCbSpy = this . spy ( funcHandler , 'enterTo ' ) ;
180+ strape . performAction ( dir , cb , enterCb ) ;
181181 updateSelectedIdSpy . should . have . been . calledOnce ;
182182 execCbSpy . should . have . been . calledOnce ;
183- exitCbSpy . should . have . been . callCount ( 0 ) ;
183+ enterCbSpy . should . have . been . callCount ( 0 ) ;
184184 } ) ) ;
185185
186- it ( 'should call exitCb when it has not moved on performAction' , sinon . test ( function ( ) {
186+ it ( 'should call enterCb when it has not moved on performAction' , sinon . test ( function ( ) {
187187 const strape = new StrapeBinder ( ) ;
188188 strape . hasMoved = false ;
189189 strape . nextEl = {
@@ -195,18 +195,18 @@ describe('StrapeBinder.jsx', () => {
195195 } ;
196196 const dir = 'left' ;
197197 const cb = ( ) => null ;
198- const exitCb = ( ) => null ;
198+ const enterCb = ( ) => null ;
199199 this . mock ( strape )
200200 . expects ( 'calculateNewState' )
201201 . once ( )
202202 . withArgs ( dir ) ;
203203 const updateSelectedIdSpy = this . spy ( actions , 'updateSelectedId' ) ;
204204 const execCbSpy = this . spy ( funcHandler , 'execCb' ) ;
205- const exitCbSpy = this . spy ( funcHandler , 'exitTo ' ) ;
206- strape . performAction ( dir , cb , exitCb ) ;
205+ const enterCbSpy = this . spy ( funcHandler , 'enterTo ' ) ;
206+ strape . performAction ( dir , cb , enterCb ) ;
207207 updateSelectedIdSpy . should . have . been . callCount ( 0 ) ;
208208 execCbSpy . should . have . been . callCount ( 0 ) ;
209- exitCbSpy . should . have . been . calledOnce ;
209+ enterCbSpy . should . have . been . calledOnce ;
210210 } ) ) ;
211211
212212 it ( 'should calculateNewState set new props to component' , sinon . test ( function ( ) {
@@ -256,17 +256,17 @@ describe('StrapeBinder.jsx', () => {
256256 strape . keysHandler ( 30 ) ;
257257 } ) ) ;
258258
259- it ( 'should call exit and init prevDir on UP key' , sinon . test ( function ( ) {
259+ it ( 'should call enter and init prevDir on UP key' , sinon . test ( function ( ) {
260260 this . mock ( actions )
261- . expects ( 'exit ' )
261+ . expects ( 'enter ' )
262262 . once ( )
263- . withArgs ( 'bounds' , ' myup', 'nextEl2' ) ;
263+ . withArgs ( 'myup' , 'nextEl2' ) ;
264264 this . stub ( active , 'isActive' ) . returns ( true ) ;
265265 this . stub ( clock , 'isBlocked' ) . returns ( false ) ;
266266 const strape = new StrapeBinder ( ) ;
267267 strape . props = {
268268 id : 1 ,
269- exitStrategy : 'bounds' ,
269+ enterStrategy : 'bounds' ,
270270 onUpExit : 'myup' ,
271271 } ;
272272 strape . nextEl = { id : 'nextEl2' } ;
@@ -275,17 +275,17 @@ describe('StrapeBinder.jsx', () => {
275275 expect ( strape . prevDir ) . to . be . null ;
276276 } ) ) ;
277277
278- it ( 'should call exit and init prevDir on DOWN key' , sinon . test ( function ( ) {
278+ it ( 'should call enter and init prevDir on DOWN key' , sinon . test ( function ( ) {
279279 this . mock ( actions )
280- . expects ( 'exit ' )
280+ . expects ( 'enter ' )
281281 . once ( )
282- . withArgs ( 'bounds' , ' mydown', 'nextEl2' ) ;
282+ . withArgs ( 'mydown' , 'nextEl2' ) ;
283283 this . stub ( active , 'isActive' ) . returns ( true ) ;
284284 this . stub ( clock , 'isBlocked' ) . returns ( false ) ;
285285 const strape = new StrapeBinder ( ) ;
286286 strape . props = {
287287 id : 1 ,
288- exitStrategy : 'bounds' ,
288+ enterStrategy : 'bounds' ,
289289 onDownExit : 'mydown' ,
290290 } ;
291291 strape . nextEl = { id : 'nextEl2' } ;
0 commit comments