Nov
18
comment How do I send multiple headers with angularJS resource?
yep, no cigar on that one, the previous answer seems to work....
Nov
18
comment How do I send multiple headers with angularJS resource?
Documentation? what's one of them then? :-) Thanks dude, I did look but didn't see it. Although looking... "Map of strings or functions" - I will have to learn what a map is in this case! Thanks will mark as correct as soon as 8 mins is up!
Nov
18
asked How do I send multiple headers with angularJS resource?
Nov
17
awarded Notable Question
Nov
17
revised Why does my Javascript snippet for a module return undefined on a private variable?
edited title
Nov
17
comment Why does my Javascript snippet for a module return undefined on a private variable?
The answer is good although I'm not keen on the 'get' keyword I haven't seen it a lot and worry it will confuse people. I have refactored to two methods as it seems more orthogonal.... The getter buries the 'get' inside the inner function. getReferences : _getReferences, setReferences : _setReferences
Nov
17
accepted Why does my Javascript snippet for a module return undefined on a private variable?
Nov
17
revised Why does my Javascript snippet for a module return undefined on a private variable?
the problem wasn't explained I had to infer the problem from the solution.
Nov
17
asked Why does my Javascript snippet for a module return undefined on a private variable?
Nov
16
comment No compatible version found: coffee-script@'^1.6.3'
I lost the error message but when I removed the 'engine' declaration from the package.json it magically started working!
Nov
16
asked No compatible version found: coffee-script@'^1.6.3'
Nov
15
awarded Nice Question
Nov
10
asked How can I access my service from module setup in Angular Jasmine Test?
Nov
8
comment How can I get angularJS to use real implementation of $http and $resource in jasmine tests?
thanks I will have a look at this and see can I get it working might be what I need!
Nov
8
comment How can I get angularJS to use real implementation of $http and $resource in jasmine tests?
No I have an object called reservationCreator it is an angular service collection and it hits 3 web services and does a load of mapping logic. I want to integration test that module in isolation. Not drive it through a browser. People love browser testing and I tip my hat to them, for me they are no where near as fast, clean or as easy to read as direct http calls. I just need to test the domain logic and the data, not whether a button works. Luckily my modules are highly decoupled and I think I might just be able to inject jQuery at the seams to make this work....thanks for responding tho
Nov
8
comment How can I get angularJS to use real implementation of $http and $resource in jasmine tests?
Hi thanks for the reply but I hate e2e tests they are slow and difficult to maintain. And if I change my view then I have to change my test, in my experience I would rather build an orthogonal app and test at the boundaries. Then maybe use 1/2 e2e tests maximum, to check the whole thing has deployed correctly. Anyway I blather, but this is why I am trying to stay well away from view testing with protractor. However, that said please enlighten me on using $timeout or $interval to make sure the angular calls actually happen? How would this work?
Nov
8
asked How can I get angularJS to use real implementation of $http and $resource in jasmine tests?
Nov
3
accepted What is the (function() { } )() construct in javascript?
Oct
23
asked How do I change the DI $provide for my injection in an AngularJS test?
Oct
23
accepted What are the conditions for inserting modules into other modules in angular for DI purposes?
1 2 3 4 5