Fix config dialog test
This commit is contained in:
parent
d34cbbc9f0
commit
cf211af367
@ -153,8 +153,8 @@ describe('ConfigDialogModel tests', () => {
|
|||||||
// given
|
// given
|
||||||
spyOn(cm, 'validate').and.returnValue(true);
|
spyOn(cm, 'validate').and.returnValue(true);
|
||||||
spyOn(config, 'save').and.returnValue(Promise.resolve());
|
spyOn(config, 'save').and.returnValue(Promise.resolve());
|
||||||
cm.model.layerId = '1';
|
|
||||||
cm.init();
|
cm.init();
|
||||||
|
cm.model.layerId = '1';
|
||||||
const button = cm.dialog.element.querySelector("[data-bind='onSave']");
|
const button = cm.dialog.element.querySelector("[data-bind='onSave']");
|
||||||
// when
|
// when
|
||||||
button.click();
|
button.click();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user