mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
Normalize event callback function names in search and sort components
This commit is contained in:
@@ -110,7 +110,7 @@ describe('<Sort />', () => {
|
||||
</I18nProvider>
|
||||
).find('Sort');
|
||||
|
||||
wrapper.instance().onSortDropdownSelect({ target: { innerText: 'Bar' } });
|
||||
wrapper.instance().handleDropdownSelect({ target: { innerText: 'Bar' } });
|
||||
expect(onSort).toBeCalledWith('bar', 'ascending');
|
||||
});
|
||||
|
||||
@@ -135,7 +135,7 @@ describe('<Sort />', () => {
|
||||
</I18nProvider>
|
||||
).find('Sort');
|
||||
expect(wrapper.state('isSortDropdownOpen')).toEqual(false);
|
||||
wrapper.instance().onSortDropdownToggle(true);
|
||||
wrapper.instance().handleDropdownToggle(true);
|
||||
expect(wrapper.state('isSortDropdownOpen')).toEqual(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user