Open javicacheiro opened 9 years ago
Same problem here.
I fixed it by change some files as below: bower.json
"oclazyload": "~0.6.0",
karma.conf.js
files: [
'bower_components/jquery/dist/jquery.min.js',
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'bower_components/angular-animate/angular-animate.js',
'bower_components/angular-cookies/angular-cookies.js',
'bower_components/angular-resource/angular-resource.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-sanitize/angular-sanitize.js',
'bower_components/angular-touch/angular-touch.js',
'bower_components/oclazyload/dist/ocLazyLoad.js',
'bower_components/angular-ui-router/release/angular-ui-router.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/json3/lib/json3.js',
'bower_components/angular-loading-bar/build/loading-bar.js',
'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'bower_components/metisMenu/dist/metisMenu.js',
'bower_components/Chart.js/Chart.min.js',
'app/scripts/app.js',
'app/scripts/**/*.js',
'test/spec/**/*.js'
],
@thanhson1085 :+1: your solution did resolve this issue
@dothanhlam , you are welcome. Nice to meet Vietnamese guy here.
Tests fail in the current version.
I tryed modifying the MainCtrl to pass the default test: app/scripts/controllers/main.js
This is the error returned by grunt test:
It seems with the current karma config it is not able to inject oc.lazyLoad but I was not able to figure out how to modify it to make it work.