Select unit test: fix jshint errors