mirror of
https://github.com/apache/superset.git
synced 2026-04-16 22:55:52 +00:00
Re-enable rule prefer-destructuring (only for objects) (#10867)
This commit is contained in:
committed by
GitHub
parent
c51168a30a
commit
352e8a1afd
@@ -69,7 +69,7 @@ describe('QuerySearch', () => {
|
||||
});
|
||||
|
||||
it('refreshes queries when enter (only) is pressed on the input', () => {
|
||||
const callCount = search.callCount;
|
||||
const { callCount } = search;
|
||||
wrapper.find('input').simulate('keyDown', { keyCode: 'a'.charCodeAt(0) });
|
||||
expect(search.callCount).toBe(callCount);
|
||||
wrapper.find('input').simulate('keyDown', { keyCode: '\r'.charCodeAt(0) });
|
||||
@@ -81,7 +81,7 @@ describe('QuerySearch', () => {
|
||||
});
|
||||
|
||||
it('refreshes queries when clicked', () => {
|
||||
const callCount = search.callCount;
|
||||
const { callCount } = search;
|
||||
wrapper.find(Button).simulate('click');
|
||||
expect(search.callCount).toBe(callCount + 1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user