I am going to test one controller method using siesta, in this method i check the store data load properly or not.
While testing this method using siesta, i didn't got store data. please help me in this case.
In following code getControllerClassName and getStoreClassName are user defined methods.
My code:
StartTest(function(t) {
t.requireOk([
getControllerClassName('base.BaseController'),
getStoreClassName('FilmStore')
], function() {
var mod = Ext.create(getControllerClassName('base.BaseController'));
var storeName = Ext.create(getStoreClassName('FilmStore'));
t.is(mod.getFilmStoreData(), null, 'getFilmStoreData works ok');
//console.log(storeName);
t.loadStoresAndThen(storeName, function(){
console.log('store load');
});
});
});