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:
Evan Rusackas
2026-02-11 11:06:34 -05:00
committed by GitHub
parent 88a14f2ba0
commit c28729f944
10 changed files with 35 additions and 10 deletions

View File

@@ -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 = {