cgauthier / karma_jasmine_2_extjs4

Running Jasmine 2.x Unit Tests for ExtJS 4.x apps using Karma runner and dealing with asynchronous issues.
9 stars 3 forks source link

Not able to test the testsuits and specs #1

Open rdb7390 opened 7 years ago

rdb7390 commented 7 years ago

Error Chrome 56.0.2924 (Windows 7 0.0.0) Basic Ext Assumption Basic Controller Assumpt ion Expect UsersController Controller FAILED TypeError: Cannot read property 'getModel' of undefined at i.getModel (absoluteC:/apache-tomcat-extJS/webapps/extjs/ext-all. js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:409243) at i.getUserModel (absoluteC:/apache-tomcat-extJS/webapps/extjs/ext- all.js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:17616) at i.createGetters (absoluteC:/apache-tomcat-extJS/webapps/extjs/ext -all.js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:408236) at new constructor (absoluteC:/apache-tomcat-extJS/webapps/extjs/ext -all.js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:407781) at i [as self] (absoluteC:/apache-tomcat-extJS/webapps/extjs/ext-all .js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:46582) at eval (eval at getInstantiator (absoluteC:/apache-tomcat-extJS/web apps/extjs/ext-all.js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:51378), <anony mous>:3:8) at Object.instantiate (absoluteC:/apache-tomcat-extJS/webapps/extjs/ ext-all.js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:51153) at Object.create (absoluteC:/apache-tomcat-extJS/webapps/extjs/ext-a ll.js?5fd6f8cb4068873f6470fc9d2729f8947786a86e:21:17685) at Object. (base/app-tests/example.js:47:35) Expected null to be truthy. Error: Expected null to be truthy.

cgauthier commented 7 years ago

This code was written many many moons ago. I will have to revisit the code and refresh it based on today's realities of newer versions of apps and frameworks. But, it would seem that you are missing the ExtJS library which isn't included in the code base in this repo.