Our blazing fast Grid component built with pure JavaScript

Post by pkuehne_sharesuite »


I am trying to setup a Test File where we use the bryntum Grid.

But I get an error as soon as I start the test, because of the store that tries to load the data.

Is there a way to mock an AjaxStore for Angular Tests?


Post by alex.l »

Hi Phil,

Try to specify path to JSON file as URL in your store.

store : {
  createUrl  : 'mock/create.json',
  readUrl    : 'mock/read.json',
  updateUrl  : 'mock/update.json',
  deleteUrl  : 'mock/delete.json'

To mock server requests, you need to check docs of your test frameworks.

All the best,

Post Reply