{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5128","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5128/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5128/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5128/events","html_url":"https://github.com/angular-ui/bootstrap/issues/5128","id":123986748,"number":5128,"title":"$uibModalInstance breaking tests","user":{"login":"sgmart","id":1746954,"avatar_url":"https://avatars.githubusercontent.com/u/1746954?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmart","html_url":"https://github.com/sgmart","followers_url":"https://api.github.com/users/sgmart/followers","following_url":"https://api.github.com/users/sgmart/following{/other_user}","gists_url":"https://api.github.com/users/sgmart/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmart/subscriptions","organizations_url":"https://api.github.com/users/sgmart/orgs","repos_url":"https://api.github.com/users/sgmart/repos","events_url":"https://api.github.com/users/sgmart/events{/privacy}","received_events_url":"https://api.github.com/users/sgmart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-27T16:38:44Z","updated_at":"2015-12-27T16:51:08Z","closed_at":"2015-12-27T16:51:08Z","body":"By using the `$iubModal` service to open a modal window, we need to inject the `$uibModalInstance` in the modal controller to close or dismiss the modal window, this injection break down my unit tests.\r\n\r\nThe error thrown is: `Error: [$injector:unpr] Unknown provider: $uibModalInstanceProvider <- $uibModalInstance` \r\n\r\nHere's a plunker to illustrate the issue:\r\nhttp://plnkr.co/edit/w4D2c25aa45OSXn3ZsJb?p=preview\r\n\r\nNote: unit tests work before `$uibModalInstance` is injected."},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/167425808","html_url":"https://github.com/angular-ui/bootstrap/issues/5128#issuecomment-167425808","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/5128","id":167425808,"user":{"login":"icfantv","id":370054,"avatar_url":"https://avatars.githubusercontent.com/u/370054?v=3","gravatar_id":"","url":"https://api.github.com/users/icfantv","html_url":"https://github.com/icfantv","followers_url":"https://api.github.com/users/icfantv/followers","following_url":"https://api.github.com/users/icfantv/following{/other_user}","gists_url":"https://api.github.com/users/icfantv/gists{/gist_id}","starred_url":"https://api.github.com/users/icfantv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icfantv/subscriptions","organizations_url":"https://api.github.com/users/icfantv/orgs","repos_url":"https://api.github.com/users/icfantv/repos","events_url":"https://api.github.com/users/icfantv/events{/privacy}","received_events_url":"https://api.github.com/users/icfantv/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T16:51:08Z","updated_at":"2015-12-27T16:51:08Z","body":"You have an error in your code.  Unfortunately, I'm on mobile right now and can't look.  Questions like these are best suited for stack overflow as documented in our readme.  You may use our provided modal plunker example from our modal documentation as a launch point."}}