Page 1 of 1
[ANGULAR] Karma/Jasmine Tests with Grid
Posted: Mon Jul 18, 2022 11:14 am
by pkuehne_sharesuite
Hi,
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?
Greetings,
Phil
Re: [ANGULAR] Karma/Jasmine Tests with Grid
Posted: Wed Jul 20, 2022 9:31 am
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.