-
- Downloads
fix: Enhance fetch mocks and option mappings for select components
Summary of changes - Updated fetch mocks in select and tree-select tests to include response status and an 'ok' property for better simulation of real fetch behavior. - Removed redundant afterEach cleanup in the select test, as it's no longer necessary with the current setup. - Adjusted timeout duration for the fetch test in the select component to be more appropriate, reducing from 10000ms to 5000ms. - Changed option mapping templates in both select and tree-select tests to use '${id}' instead of '${name}' and '${alpha-2}' to align with the expected data structure.
Please register or sign in to comment