Skip to content

Commit 4820f89

Browse files
committed
test: bail test if next field is not found for boolean type check
1 parent a1fcfef commit 4820f89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/hooks/useQueryFilters.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ describe('useQueryFilters', () => {
166166
const fields = initialRowProps.fields;
167167
const nextField = fields.find(field => field.value === 'has_owner');
168168

169+
if (!nextField) {
170+
throw new Error("Failed to find owner field");
171+
}
172+
169173
act(() => {
170174
initialRowProps.selectStates.onChangeField(nextField);
171175
});

0 commit comments

Comments
 (0)