diff --git a/js/test/configdialogmodel.test.js b/js/test/configdialogmodel.test.js index 01d959e..de912e0 100644 --- a/js/test/configdialogmodel.test.js +++ b/js/test/configdialogmodel.test.js @@ -153,8 +153,8 @@ describe('ConfigDialogModel tests', () => { // given spyOn(cm, 'validate').and.returnValue(true); spyOn(config, 'save').and.returnValue(Promise.resolve()); - cm.model.layerId = '1'; cm.init(); + cm.model.layerId = '1'; const button = cm.dialog.element.querySelector("[data-bind='onSave']"); // when button.click();