I believe that you should improve this test, because spied `focus` function is not depends on selector `previousSpeed(i)`. After first call in line 158, `.toHaveBeenCalled()` will be `true` for all other checks in the `it`.