import { expect, fixture } from '@open-wc/testing'; import '../lion-input-email.js'; describe('', () => { it('has a type = text', async () => { const lionInputEmail = await fixture(``); expect(lionInputEmail._inputNode.type).to.equal('text'); }); it('has validator "isEmail" applied by default', async () => { // More eloborate tests can be found in lion-validate/validators.js const lionInputEmail = await fixture(``); lionInputEmail.modelValue = 'foo@bar@example.com'; expect(lionInputEmail.errorState).to.equal(true); }); });