linted and cleaned hooks.test.js
Merge pull request #2716 from mbroadst/clean-hooks-test

linted and cleaned hooks.test.js