mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore(lint): add jest/expect-expect rule for test assertions (#37887)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -575,7 +575,10 @@ describe('sqlLabReducer', () => {
|
||||
expect(newState.queries.def).toBe(completedQuery);
|
||||
});
|
||||
test('should refresh queries when polling returns empty', () => {
|
||||
const prevQueries = newState.queries;
|
||||
newState = sqlLabReducer(newState, actions.refreshQueries({}));
|
||||
// Empty refresh should preserve existing queries
|
||||
expect(newState.queries).toBe(prevQueries);
|
||||
});
|
||||
test('should set state to fetching when sync query succeeds without results', () => {
|
||||
const syncQuery = {
|
||||
|
||||
Reference in New Issue
Block a user