shyamseshadri / angularjs-up-and-running

All the source code for the AngularJS Up & Running Book for O'Reilly
MIT License
466 stars 438 forks source link

Chapter7/serverAppSpec.js: e.cookies is not function #19

Closed jdunham2 closed 9 years ago

jdunham2 commented 9 years ago

Chrome 43.0.2357 (Mac OS X 10.10.3) MainCtrl Server Calls should load items from server FAILED TypeError: e.cookies is not a function at n (Sites/sandbox/gitHub_basics/angular/angular.min.js:82:350) ...

Not sure why this error is happening, copied and pasted the example from gitHub and still get it :/

shyamseshadri commented 9 years ago

Just did a clean checkout and tried running the tests, couldn't reproduce this.

Could you try cloning this repo and trying to run the tests?

jdunham2 commented 9 years ago

Hey Shyam,

Odd, when I cloned it like you said, it worked! Not sure whats wrong with my repository ...

Thanks! Loving the book.

jdunham2 commented 9 years ago

I reinitialized Karma with fresh angular.min.js and angular-mocks.js and this cleared up the error.

shyamseshadri commented 9 years ago

Hrm, it could be because the versions of AngularJS in min.js and mocks.js might have been different. You could check that I guess.

On Wed, 10 Jun 2015 at 20:46 jdunham2 notifications@github.com wrote:

I reinitialized Karma with fresh angular.min.js and angular-mocks.js and this cleared up the error.

— Reply to this email directly or view it on GitHub https://github.com/shyamseshadri/angularjs-up-and-running/issues/19#issuecomment-110791840 .

Best Regards, Shyam