Fix `expect` jshint errors.

Fixes expect jshint errors added via #2842.