{"action":"opened","issue":{"url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/304","repository_url":"https://api.github.com/repos/searls/jasmine-maven-plugin","labels_url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/304/comments","events_url":"https://api.github.com/repos/searls/jasmine-maven-plugin/issues/304/events","html_url":"https://github.com/searls/jasmine-maven-plugin/issues/304","id":176605389,"number":304,"title":"ECMAScript 6 Arrow Functions - Unexpected Token '>'","user":{"login":"RicoSchueppel","id":17043858,"avatar_url":"https://avatars.githubusercontent.com/u/17043858?v=3","gravatar_id":"","url":"https://api.github.com/users/RicoSchueppel","html_url":"https://github.com/RicoSchueppel","followers_url":"https://api.github.com/users/RicoSchueppel/followers","following_url":"https://api.github.com/users/RicoSchueppel/following{/other_user}","gists_url":"https://api.github.com/users/RicoSchueppel/gists{/gist_id}","starred_url":"https://api.github.com/users/RicoSchueppel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RicoSchueppel/subscriptions","organizations_url":"https://api.github.com/users/RicoSchueppel/orgs","repos_url":"https://api.github.com/users/RicoSchueppel/repos","events_url":"https://api.github.com/users/RicoSchueppel/events{/privacy}","received_events_url":"https://api.github.com/users/RicoSchueppel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-13T10:31:21Z","updated_at":"2016-09-13T10:31:21Z","closed_at":null,"body":"\r\nWe currently develop an Java Spring Boot app using an AngularJs FrontEnd (as static resources). \r\nFor unit testing of AngularJs controllers , we use Maven integrated Jasmine (com.github.searls / jasmine-maven-plugin / version 2.1) and that uses PhantomJs V2.1.1.\r\n\r\nWhen I start the app via console `mvn clean install spring-boot:run` or just `mvn jasmine:test`, the maven test goal fails and I get the following error:\r\n\r\n> [WARNING] JavaScript Console Errors:\r\n> \r\n>   * SyntaxError: Unexpected token '>'\r\n>   * SyntaxError: Unexpected token '>'\r\n\r\nWhen I start test server using `mvn jasmine:bdd` or directly from IDE (Eclipse) with a jasmine test app, the jasmine test server and all tests work very well (without any error, all tests ok). Chrome does also not show any errors on console. \r\n\r\nI googled some hours to find any reason for that. In other blogs, I found some hints that PhantomJs v2 possibly does not support some parts of ECMAScript 6 (lambdas / arrow functions, like (x) => {do something with x here}).\r\n\r\nI kicked those lambdas out and replaced it by plain old function calls. **Now `mvn jasmine:test` works fine**. By the way, the lambdas were used in a file that was not required for testing, thus not necessarily executed. It was just included by plugin configuration via <jsSrcDir>.\r\n\r\nIs there any other solution than kicking out lambdas? Can I somehow use jasmine-maven-plugin / phantomjs with js files that have lambdas / arrow functions in it? "}}
{"actor":{"display_login":"RicoSchueppel"}}