Joris van de Donk

Results 5 comments of Joris van de Donk

I think I've found a way to make unit tests work: by making your RequireJS modules (e.g. the services/controllers you create) return arrays and getting instances of the required services/components...

Using angular.mock.inject doesn't work, since that function uses the name of the arguments passed onto it to resolve dependencies, and once it tries to resolve these by name you get...

Hmm, you're absolutely right. My code above essentially bypasses couch-potato and makes RequireJS as well as the writer of the test do all the hard work to get things working....

I've tried using the resolveDependencies function, but it doesn't seem to work, though I'm not exactly sure I'm calling it correctly, and I'm sure that what I'm writing here isn't...

Nope. I decided to rip out CouchPotato and RequireJS because I felt that the added functionality (though amazingly cool) did not warrant the added complexity. We were bringing in a...