PhantomJS newb here, trying to use PhantomJS with Karma so that I can run browser tests on Jenkins.
I get this obvious error with PhantomJS
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
SyntaxError: Expected an identifier but found 'handlePageRequest' instead
at public/app.js:45
when using let variable declaration like so:
let handlePageRequest = {};
How can I tell PhantomJS to interpret JavaScript like the latest versions of Chrome or Mozilla would?