import { isEmailValid } from '../' import { describe, it, expect } from 'vitest' describe('isEmailValid', () => { it('returns true if the email is valid', () => { const email = 'test@example.com' expect(isEmailValid(email)).toBe(true) }) it('returns false if the email is not valid', () => { const email = 'not-valid@.fr' expect(isEmailValid(email)).toBe(false) }) it('returns false if the email has £ µ § characters', () => { const email = 'not-valid-£µ§@.fr' expect(isEmailValid(email)).toBe(false) }) })