You can use `toBeFocused` matcher from [jasmine-jquery](https://github.com/velesin/jasmine-jquery).
```javascript
expect(speedEntries.last()).toBeFocused()
```