Skip to content

Commit

Permalink
test: remove usage of nextUpdate helper
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Oct 3, 2024
1 parent 87bc674 commit 6905967
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/custom-field/test/validation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ describe('validation', () => {
expect(customField.invalid).to.be.true;
});

it('should validate when setting required to false', async () => {
it('should validate when setting required to false', () => {
const validateSpy = sinon.spy(customField, 'validate');
customField.required = false;
await nextUpdate(customField);
expect(validateSpy).to.be.calledOnce;
});
});
Expand Down

0 comments on commit 6905967

Please sign in to comment.