TypeError: Cannot read property 'userAgent' of undefined
at $SnifferProvider.$get (C:/server/www/base/app/lib/angular/angular.js:8221:72)
describe('Module', function () {var mock = {};beforeEach(function() {module('Module');module(function($provide) {$provide.value('$window', mock);});});describe('Service', function () {// ...});});
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Create a module that defines the $window service and load this before you app module
Pete
...from my mobile.
--