While attempting to run the tests from the quickstart sb-admin-angular, I encountered an error stating unable to init ocLazyLoad
. (This issue is occurring on a Windows 7 machine.)
The command I am using to run the tests is:
$ grunt test --force
After researching on this thread, I realized that I need to ensure that the path to the ocLazyLoad script is included in karma.conf.js
.
files: [
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
...
'bower_components/oclazyload/dist/ocLazyLoad.min.js',
'app/scripts/**/*.js',
'test/mock/**/*.js',
'test/spec/**/*.js'
],
Additionally, I attempted to reinstall ocLazyLoad using Bower as suggested in the thread. During the installation process, I was prompted to choose a version and selected the first option:
Unable to find a suitable version for oclazyload, please choose one:
1) oclazyload#~0.5.2 which resolved to 0.5.2 and is required by sb-admin
2) oclazyload#^1.0.9 which resolved to 1.0.9
It seems like there is a step that I may be missing or incorrectly executing. Any guidance on this matter would be greatly appreciated.