PDA

View Full Version : get a controller for use with Jasmine



DreadyCoder
13 Apr 2012, 4:37 AM
Ext.app.controller.getController(string) does not exist (?) while inside Jasmine describe{ it() }
( Ext.app.controller. even lacks a lot more functions, it seems ... ??? )

Anyone got an idea how i can get my controller called "session" from Ext anyway ?
( i need it to unit-test some asynchromous login functions/replies)

in case it matter: yes i ran Ext.require and Ext.Loader.setConfig in my jasmine scripts

DreadyCoder
13 Apr 2012, 5:06 AM
DOH!

myAppName.app.getController('Session')