micro-refactor on spec file
This commit is contained in:
parent
e6acc57fae
commit
022450000e
|
@ -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!');
|
||||
|
|
Loading…
Reference in New Issue