How to use the @inkline/inkline/src/validators/email.email function in @inkline/inkline

To help you get started, we’ve selected a few @inkline/inkline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github inkline / inkline / tests / unit / validators / email.spec.js View on Github external
it('should return true for standard email formats', () => {
            expect(email('user@example.com')).toEqual(true);
        });
github inkline / inkline / tests / unit / validators / email.spec.js View on Github external
it('should return false for missing tld', () => {
            expect(email('user@example')).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / email.spec.js View on Github external
it('should return false for missing @', () => {
            expect(email('userexample.com')).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / email.spec.js View on Github external
it('should return false for missing domain', () => {
            expect(email('user@.com')).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / email.spec.js View on Github external
it('should return true if array contains only valid emails', () => {
            expect(email(['user1@example.com', 'user2@example.com'])).toEqual(true);
        });