Fix config dialog test

This commit is contained in:
Bartek Fabiszewski 2020-06-14 20:12:47 +02:00
parent d34cbbc9f0
commit cf211af367

View File

@ -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();