From cf211af367ec844206eabd037e642487d9687ee0 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sun, 14 Jun 2020 20:12:47 +0200 Subject: [PATCH] Fix config dialog test --- js/test/configdialogmodel.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();