I am unit testing angular application.
I couldn't able to execute unit tests of code which are written using ES6 on Chutzpah.
What could be the possible solution?
I need a stable way to achieve this.
I am answering my own question as Vaviloff didn't posted any answer but He told me in the comment section.
So,
Babel is the answer to this question.
Here is the link to babel
Babel is a Javascript compiler which transpiles the ES6 code to ES5.
Babel will change your ES6 syntax to ES5 and then you can unit test the output using Phantom js or Chutspah.