{"action":"closed","issue":{"url":"https://api.github.com/repos/HackedByChinese/ng-idle/issues/43","labels_url":"https://api.github.com/repos/HackedByChinese/ng-idle/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/HackedByChinese/ng-idle/issues/43/comments","events_url":"https://api.github.com/repos/HackedByChinese/ng-idle/issues/43/events","html_url":"https://github.com/HackedByChinese/ng-idle/issues/43","id":54102174,"number":43,"title":"Karma/Jasmine test Failing","user":{"login":"bhaskarGyan","id":10504808,"avatar_url":"https://avatars.githubusercontent.com/u/10504808?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaskarGyan","html_url":"https://github.com/bhaskarGyan","followers_url":"https://api.github.com/users/bhaskarGyan/followers","following_url":"https://api.github.com/users/bhaskarGyan/following{/other_user}","gists_url":"https://api.github.com/users/bhaskarGyan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaskarGyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaskarGyan/subscriptions","organizations_url":"https://api.github.com/users/bhaskarGyan/orgs","repos_url":"https://api.github.com/users/bhaskarGyan/repos","events_url":"https://api.github.com/users/bhaskarGyan/events{/privacy}","received_events_url":"https://api.github.com/users/bhaskarGyan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-12T20:25:40Z","updated_at":"2015-03-19T21:39:00Z","closed_at":"2015-03-19T21:39:00Z","body":"Hi \r\nI am using ng-idle in my project and everything worked great until i checked my unit tests.\r\nAll my test are failing since after adding 'ngIdle' in my app dependency my app is failing to load during Unit test.I am getting below Error\r\n\r\n39m\tError: [$injector:modulerr] Failed to instantiate module test due to:\r\n\tTypeError: undefined is not a function\r\n\t    at F:/Projects/abc/client/app/Features/Pay/PayBeneficiary/PayBeneficiary.js:9:501\r\n\t    at Object.invoke (F:/Projects/abc/client/bower_components/angular/angular.js:3966:17)\r\n\t    at F:/Projects/abc/client/bower_components/angular/angular.js:3885:37\r\n\t    at forEach (F:/Projects/abc/client/bower_components/angular/angular.js:325:18)\r\n\t    at loadModules (F:/Projects/abc/client/bower_components/angular/angular.js:3872:5)\r\n\t    at Object.createInjector [as injector] (F:/Projects//abc/client/bower_components/angular/angular.js:3812:11)\r\n\t    at Object.workFn (F:/Projects/abc/client/bower_components/angular-mocks/angular-mocks.js:2339:52)\r\n\r\nMy app.js\r\n\r\n'use strict';\r\n\r\nangular.module('test', [\r\n  'ngIdle',\r\n  'ngCookies',\r\n  'ngResource',\r\n  'ngSanitize',\r\n  'ui.router',\r\n  'dateRangePicker',\r\n  'ui.select',\r\n  'ngIdle'\r\n])\r\n  .config(function ($idleProvider, $keepaliveProvider) {\r\n     $idleProvider.idle(5); // in seconds\r\n    $idleProvider.timeout(60); // in seconds\r\n    $keepaliveProvider.interval(20); // in seconds\r\n })\r\n   .run(function($idle){\r\n             $idle.watch();\r\n   });\r\n\r\nand in my Karma config \r\n\r\n files: [\r\n      'client/bower_components/jquery/dist/jquery.js',\r\n      'client/bower_components/angular/angular.js',\r\n      'client/bower_components/angular-date-range-picker/build/angular-date-range-picker.js',\r\n      'client/bower_components/angular-mocks/angular-mocks.js',\r\n      'client/bower_components/angular-resource/angular-resource.js',\r\n      'client/bower_components/angular-cookies/angular-cookies.js',\r\n      'client/bower_components/angular-sanitize/angular-sanitize.js',\r\n      'client/bower_components/lodash/dist/lodash.compat.js',\r\n      'client/bower_components/angular-ui-router/release/angular-ui-router.js',\r\n      'client/bower_components/foundation/js/foundation.js',\r\n      'client/bower_components/foundation/js/foundation/foundation.reveal.js',\r\n      'node_modules/karma-jasmine-jquery/lib/jasmine-jquery.js',\r\n      'client/bower_components/angular-bindonce/bindonce.js',\r\n      'client/bower_components/moment/moment.js',\r\n      'client/bower_components/moment-range/lib/moment-range.js',\r\n      'client/bower_components/ng-idle/angular-idle.min.js',\r\n      'client/app/app.js',\r\n      'client/app/*.js',\r\n      'client/components/*.js',\r\n      'client/app/*.html',\r\n      'client/components/*.html',    \r\n    ],\r\nIf i remove ngIdle from app dependency all my test are passing. \r\n**am I missing something?**\r\n I even tried the ng-idle-test but it is throwing  Error: [$injector:unpr] Unknown provider: $$qProvider <- $$q <- $interval <- $idle Error.\r\n\r\n**I am using angular 1.25 and jasmine 2.0**"}}