Please, write more simple tests in future. These tests are easy readable and provide more information about where issue occurs.
```javascript
it('cue is called, followed by seekTo', function () {
  state.videoPlayer.updatePlayTime(10);
  expect(state.videoPlayer.player.cueVideoById).toHaveBeenCalledWith('cogebirgzzM', 10);
});
it('Handling cue state', function () {
  spyOn(state.videoPlayer, 'play');
  state.videoPlayer.onStateChange({data: 5});
  expect(state.videoPlayer.player.seekTo).toHaveBeenCalledWith(10, true);
  expect(state.videoPlayer.play).toHaveBeenCalled();
});
```