{"action":"created","issue":{"url":"https://api.github.com/repos/luisfarzati/angulartics/issues/181","labels_url":"https://api.github.com/repos/luisfarzati/angulartics/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/luisfarzati/angulartics/issues/181/comments","events_url":"https://api.github.com/repos/luisfarzati/angulartics/issues/181/events","html_url":"https://github.com/luisfarzati/angulartics/issues/181","id":40782318,"number":181,"title":"unit tests fail when adding angulartics","user":{"login":"lpsBetty","id":244475,"avatar_url":"https://avatars.githubusercontent.com/u/244475?v=3","gravatar_id":"","url":"https://api.github.com/users/lpsBetty","html_url":"https://github.com/lpsBetty","followers_url":"https://api.github.com/users/lpsBetty/followers","following_url":"https://api.github.com/users/lpsBetty/following{/other_user}","gists_url":"https://api.github.com/users/lpsBetty/gists{/gist_id}","starred_url":"https://api.github.com/users/lpsBetty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpsBetty/subscriptions","organizations_url":"https://api.github.com/users/lpsBetty/orgs","repos_url":"https://api.github.com/users/lpsBetty/repos","events_url":"https://api.github.com/users/lpsBetty/events{/privacy}","received_events_url":"https://api.github.com/users/lpsBetty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/luisfarzati/angulartics/labels/review-pending","name":"review-pending","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-08-21T08:20:43Z","updated_at":"2015-01-21T09:12:08Z","closed_at":"2014-09-04T07:45:26Z","body":"I use karma for unit tests and I added angulartics.. I changed **nothing** on my tests.. I load this files in karma.conf.js:\r\n\r\n````\r\n  'public/assets/components/angular/*.min.js',\r\n  'public/assets/components/angular-translate/angular-translate.min.js', // load in right order\r\n  'public/assets/components/angular-*/*.min.js',\r\n  'public/assets/components/angulartics/src/angulartics.js',\r\n  'public/assets/components/angulartics/src/angulartics-ga.js',\r\n  'public/assets/javascripts/app/app.js',\r\n````\r\n\r\nAnd the strange thing is, that I don't get a specific error just 1 test FAILED with this message:\r\n\r\n```Some of your tests did a full page reload!```\r\n\r\nWhen I comment out the failing test, another one fails saying the same error message.. I have no clue what is happening there.. I use ```spyOn($location, 'path');``` in some of my tests, has that something to do with it?"},"comment":{"url":"https://api.github.com/repos/luisfarzati/angulartics/issues/comments/70805700","html_url":"https://github.com/luisfarzati/angulartics/issues/181#issuecomment-70805700","issue_url":"https://api.github.com/repos/luisfarzati/angulartics/issues/181","id":70805700,"user":{"login":"andkuha","id":2567048,"avatar_url":"https://avatars.githubusercontent.com/u/2567048?v=3","gravatar_id":"","url":"https://api.github.com/users/andkuha","html_url":"https://github.com/andkuha","followers_url":"https://api.github.com/users/andkuha/followers","following_url":"https://api.github.com/users/andkuha/following{/other_user}","gists_url":"https://api.github.com/users/andkuha/gists{/gist_id}","starred_url":"https://api.github.com/users/andkuha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andkuha/subscriptions","organizations_url":"https://api.github.com/users/andkuha/orgs","repos_url":"https://api.github.com/users/andkuha/repos","events_url":"https://api.github.com/users/andkuha/events{/privacy}","received_events_url":"https://api.github.com/users/andkuha/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T09:12:08Z","updated_at":"2015-01-21T09:12:08Z","body":"Thanks it solved the issue."}}