UNPKG

@cnamts/vue-dot

Version:

Implementation of our Design System for the French Health Insurance

16 lines (11 loc) 346 B
import { isEmailValid } from '../'; 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); }); });