still valid? I am trying to mock $window in the same fashion for a service's unit test, but get the following error when $provide.value('$window', mock) is present
Error: Argument 'fn' is not a function, got Object
at assertArg (/home/spainhower/apps/frontend/angular-piwik/vendor/angular.js:975)
at assertArgFn (/home/spainhower/apps/frontend/angular-piwik/vendor/angular.js:986)
at annotate (/home/spainhower/apps/frontend/angular-piwik/vendor/angular.js:2306)
at invoke (/home/spainhower/apps/frontend/angular-piwik/vendor/angular.js:2789)
at /home/spainhower/apps/frontend/angular-piwik/vendor/angular.js:2662