{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/15788","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/15788/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/15788/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/15788/events","html_url":"https://github.com/angular/angular.js/issues/15788","id":212997197,"number":15788,"title":"angular-mocks.js v1.6.3 fails when to run it via Jasmine","user":{"login":"stas-kh","id":10476834,"avatar_url":"https://avatars1.githubusercontent.com/u/10476834?v=3","gravatar_id":"","url":"https://api.github.com/users/stas-kh","html_url":"https://github.com/stas-kh","followers_url":"https://api.github.com/users/stas-kh/followers","following_url":"https://api.github.com/users/stas-kh/following{/other_user}","gists_url":"https://api.github.com/users/stas-kh/gists{/gist_id}","starred_url":"https://api.github.com/users/stas-kh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stas-kh/subscriptions","organizations_url":"https://api.github.com/users/stas-kh/orgs","repos_url":"https://api.github.com/users/stas-kh/repos","events_url":"https://api.github.com/users/stas-kh/events{/privacy}","received_events_url":"https://api.github.com/users/stas-kh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-03-09T10:37:36Z","updated_at":"2017-03-09T16:34:20Z","closed_at":"2017-03-09T16:34:20Z","body":"**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n\r\n**What is the current behavior?**\r\nCurrently, the angular-mocks.js file crashes when to run it via Jasmine with the following error: \r\n> TypeError: undefined is not a constructor (evaluating 'angular.module('ngAnimateMock', ['ng'])\r\n>   .info({ angularVersion: '1.6.3' })') at\r\n>  .\\PATH_TO_PROJECT\\tools\\grunt\\node_modules\\angular-mocks\\angular-mocks.js:800 \r\n\r\nDue to this, the Jasmine can't load tests which use 'module' or 'inject' variables.\r\n\r\n**What is the expected behavior?**\r\nIt is expected to have a possibility to use angular-mocks.js file and its data in Jasmine tests.\r\n\r\n\r\n**Which versions of AngularJS, and which browser / OS are affected by this issue? Did this work in previous versions of AngularJS? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.**\r\n\"angular-mocks\": \"1.6.3\",\r\n\"grunt-contrib-jasmine\": \"^1.1.0\"\r\n\r\nYes, it works fine with versions lower that 1.6.3."},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/285404326","html_url":"https://github.com/angular/angular.js/issues/15788#issuecomment-285404326","issue_url":"https://api.github.com/repos/angular/angular.js/issues/15788","id":285404326,"user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars3.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"created_at":"2017-03-09T16:34:20Z","updated_at":"2017-03-09T16:34:20Z","body":"Since AngularJS does not strictly follow semver (i.e. we do make breaking changes between minor versions) you must be more strict in your dependency ranges, e.g. `1.5.x` or `>=1.5.3 <1.6`."}}
{"actor":{"display_login":"petebacondarwin"}}