diff --git a/client/core/src/dialog/dialog.spec.js b/client/core/src/dialog/dialog.spec.js index 68d32177a..fc6152508 100644 --- a/client/core/src/dialog/dialog.spec.js +++ b/client/core/src/dialog/dialog.spec.js @@ -112,11 +112,11 @@ describe('Component vnDialog', () => { let childElement = document.createElement('div'); childElement.className = 'button-bar'; controller.element.appendChild(childElement); - let event = {target: controller.element}; let attribute = document.createAttribute('response'); attribute.value = 'I am the response!'; controller.element.setAttributeNode(attribute); spyOn(controller, 'fireResponse'); + let event = {target: controller.element}; controller.onButtonClick(event); expect(controller.fireResponse).toHaveBeenCalledWith('I am the response!');