I have been using an older version of kendo ui mobile, due to a bug I found in the old version of Kendo ui mobile, I had to upgrade to the latest in the latest one (went from v2012.2.913 to v2012.3.1114). I have been using the mockjax library to mock the server responses to ajax calls, however in the latest version the mock is not getting hit. Am I doing something improper in the code or is there a better way to accomplish this testing?
Here is an example of my previous setup:
mockjax:
View model code with a datasource
Here is an example of my previous setup:
mockjax:
$.mockjax({ url: '/url', dataType:"json", responseText: { status: "ok", results: [ { name: "blah", value: "blah", },{ name: "blah2", value: "blah2", } ] }});View model code with a datasource
var VM= kendo.observable({ data: new kendo.data.DataSource({ transport: { read: { url: '/url', dataType: "json" }, parameterMap: function(options) { return { maxResults: 15 } } }, schema: { data: "results" } })});