Skip to content

Commit c0aa7d9

Browse files
committed
update email validation test to check for valid input when there is no value
1 parent 44150bd commit c0aa7d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/uui-input/lib/uui-input.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ describe('UuiInput in Form', () => {
220220
await elementUpdated(element);
221221
});
222222

223-
it('sets element to invalid when value is empty', async () => {
224-
expect(element.checkValidity()).to.be.false;
223+
it('sets element to valid when value is empty', async () => {
224+
expect(element.checkValidity()).to.be.true;
225225
});
226226

227227
it('email element is invalid when it has a none compliant value', async () => {

0 commit comments

Comments
 (0)