Hi,
I have kendo-grid with a detailTemplate
detailTemplate:kendo.template($('#deviceDetails').html())
see http://dojo.telerik.com/@rtv/aCoc for a complete example.
Angular Jasmine unit tests fail to load a controller with this detailTemplate line in it with the following error
Note : line 131 in the following stack trace is detailTemplate:kendo.template($('#deviceDetails').html())
TypeError: e is undefined
z.compile@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/kendoUI/js/kendo.all.min.js:9:6980
.proxy/i@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/jquery/jquery1.9.1.min.js:3:6327
@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/scripts/controllers/deviceSummaryController.js:131:9
invoke@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:3906:7
instantiate@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:3917:7
$ControllerProvider/this.$get</<@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:7201:7
@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/test/spec/controllers/deviceSummaryControllerTest.js:124:76
invoke@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:3906:7
workFn@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular-mocks/angular-mocks.js:2149:11
How can I get around this ?
-Rajesh
I have kendo-grid with a detailTemplate
detailTemplate:kendo.template($('#deviceDetails').html())
see http://dojo.telerik.com/@rtv/aCoc for a complete example.
Angular Jasmine unit tests fail to load a controller with this detailTemplate line in it with the following error
Note : line 131 in the following stack trace is detailTemplate:kendo.template($('#deviceDetails').html())
TypeError: e is undefined
z.compile@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/kendoUI/js/kendo.all.min.js:9:6980
.proxy/i@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/jquery/jquery1.9.1.min.js:3:6327
@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/scripts/controllers/deviceSummaryController.js:131:9
invoke@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:3906:7
instantiate@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:3917:7
$ControllerProvider/this.$get</<@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:7201:7
@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/test/spec/controllers/deviceSummaryControllerTest.js:124:76
invoke@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular/angular.js:3906:7
workFn@/Users/rtv/workspace/ioxmgr13March/ccm/ioxmgr/ioxmgr-ui/app/bower_components/angular-mocks/angular-mocks.js:2149:11
How can I get around this ?
-Rajesh