Update consumer tests so they follow js coding standards.

The consumer tests are written in JS and they appear to have some linter offences that are being ignored at the moment. We should circle back to it and update it to adhere to our JS coding standards.

Edited by Richard Chong