Commit 61e4c229 authored by Florie Guibert's avatar Florie Guibert

Update widget on click dropdown item when creating epic from epic

parent 355fcccc
...@@ -87,7 +87,7 @@ describe('SplitButton', () => { ...@@ -87,7 +87,7 @@ describe('SplitButton', () => {
const addChangeEventHandler = () => { const addChangeEventHandler = () => {
changeEventHandler = jest.fn(); changeEventHandler = jest.fn();
wrapper.vm.$once('change', () => changeEventHandler()); wrapper.vm.$once('change', item => changeEventHandler(item));
}; };
it('defaults to first actionItems event', () => { it('defaults to first actionItems event', () => {
...@@ -110,7 +110,7 @@ describe('SplitButton', () => { ...@@ -110,7 +110,7 @@ describe('SplitButton', () => {
addChangeEventHandler(); addChangeEventHandler();
return selectItem(1).then(() => { return selectItem(1).then(() => {
expect(changeEventHandler).toHaveBeenCalled(); expect(changeEventHandler).toHaveBeenCalledWith(mockActionItems[1]);
}); });
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment