Unit Testing
bkak opened this issue · 1 comments
Do you have Unit Test for this project?
My jasmine unit tests are failing to find the controller.
Since the value of app.register.controller is null, because $providers did not get registered in the config while at testing time. It seems app.config is called only when $route is resolved which happens in the normal user navigation scenario.
Any ideas?
I don’t have one for this scenario unfortunately. Since the controllers are downloaded dynamically the test would have to pre-load the controller upfront & I haven’t looked into that one yet.
Dan
From: Bhoomi [mailto:notifications@github.com]
Sent: Tuesday, September 3, 2013 4:25 AM
To: DanWahlin/CustomerManager
Subject: [CustomerManager] Unit Testing (#5)
Do you have Unit Test for this project?
My jasmine unit tests are failing to find the controller.
Since the value of app.register.controller is null, because $providers did not get registered in the config while at testing time. It seems app.config is called only when $route is resolved which happens in the normal user navigation scenario.
Any ideas?
—
Reply to this email directly or view it on GitHub #5 . https://github.com/notifications/beacon/-qe5h4jddzcHcmhqXzVhY7nEPBquwKjnlNJeIK8hCtf5kWBZmzstn3CbbQ6aID4F.gif