How to use the @inkline/inkline/src/validators/alpha.alpha 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 / alpha.spec.js View on Github external
it('should return false for letters and numbers', () => {
            expect(alpha('abc123')).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / alpha.spec.js View on Github external
it('should return false if not all array entries are alpha', () => {
            expect(alpha(['abc', '123', 'ABC'])).toEqual(false);
        });
    });
github inkline / inkline / tests / unit / validators / alpha.spec.js View on Github external
it('should return true for lowercase letters', () => {
            expect(alpha('abc')).toEqual(true);
        });
github inkline / inkline / tests / unit / validators / alpha.spec.js View on Github external
it('should return true for letters and spaces if options.allowSpace enabled', () => {
            expect(alpha('abc ABC', { allowSpaces: true })).toEqual(true);
        });
github inkline / inkline / tests / unit / validators / alpha.spec.js View on Github external
it('should return false for letters and symbols', () => {
            expect(alpha('abc!')).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / alpha.spec.js View on Github external
it('should return true for lowercase and uppercase letters', () => {
            expect(alpha('abcABC')).toEqual(true);
        });
github inkline / inkline / tests / unit / validators / alpha.spec.js View on Github external
it('should return true for uppercase letters', () => {
            expect(alpha('ABC')).toEqual(true);
        });
github inkline / inkline / tests / unit / validators / alpha.spec.js View on Github external
it('should return true for letters and dashes if options.allowDash enabled', () => {
            expect(alpha('abc-ABC', { allowDashes: true })).toEqual(true);
        });