micro-refactor on spec file

This commit is contained in:
Carlos 2017-10-06 15:36:25 +02:00
parent e6acc57fae
commit 022450000e
1 changed files with 1 additions and 1 deletions

View File

@ -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!');