johnpapa / johnpapa/hottowel-angular-typescript
Unknown provider: routerHelperProvider <- routerHelper
- Dominant language
- JavaScript
- Stars
- 146
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
When I try this out-of-the-box, it runs okay, but this test fails:
```
[1APhantomJS 1.9.7 (Mac OS X 0.0.0) layout sidebar "before each" hook FAILED
Error: [$injector:unpr] Unknown provider: routerHelperProvider <- routerHelper
http://errors.angularjs.org/1.3.16/$injector/unpr?p0=routerHelperProvider%20%3C-%20routerHelper
at ...project-path.../bower_components/angular/angular.js:4031
at getService (...project-path.../bower_components/angular/angular.js:4178)
at ...project-path.../bower_components/angular/angular.js:4036
at getService (...project-path.../bower_components/angular/angular.js:4178)
at ...project-path.../bower_components/bardjs/dist/bard.js:301
at forEach (...project-path.../bower_components/angular/angular.js:326)
at bardInject (...project-path.../bower_components/bardjs/dist/bard.js:315)
at ...project-path.../src/client/app/layout/sidebar.controller.spec.js:13
```
If I comment out references to routerHelper in src/client/app/layout/sidebar.controller.spec.js, the tests pass fine. Is this method deprecated?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the failing layout sidebar test and inspect src/client/app/layout/sidebar.controller.spec.js, especially its routerHelper references. Trace how routerHelper is provided in the application and test setup; done means the test no longer reports Unknown provider without commenting out those references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- frontend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100