Skip to content

Commit

Permalink
improve the test for wider coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Dec 5, 2024
1 parent 7b82905 commit 5eaff4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/custom-field/test/custom-field.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,16 @@ describe('custom field', () => {
});
});

it('should clear value when removing all inputs', async () => {
it('should update value when removing inputs', async () => {
customField.value = '1\t1';
await nextUpdate(customField);

customField.removeChild(customField.inputs[0]);
customField.removeChild(customField.inputs[1]);
await nextUpdate(customField);
expect(customField.value).to.equal('1');

customField.removeChild(customField.inputs[0]);
await nextUpdate(customField);
expect(customField.value).to.equal('');
});
});
Expand Down

0 comments on commit 5eaff4d

Please sign in to comment.