How to use the @inkline/inkline/src/validators/min.min 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 / min.spec.js View on Github external
it('should return false if not all array entries are greater than minimum', () => {
            expect(min(['0', '-1', '2'], { value: 0 })).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / min.spec.js View on Github external
it('should compare to 0 if value not provided', () => {
            expect(min(1)).toEqual(true);
        });
    });
github inkline / inkline / tests / unit / validators / min.spec.js View on Github external
it('should return true if value is greater than minimum', () => {
            expect(min('1', { value: 0 })).toEqual(true);
        });
github inkline / inkline / tests / unit / validators / min.spec.js View on Github external
it('should return false if value is less than minimum', () => {
            expect(min('-1', { value: 0 })).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / min.spec.js View on Github external
it('should return true if value is equal to minimum', () => {
            expect(min('0', { value: 0 })).toEqual(true);
        });
github inkline / inkline / tests / unit / validators / min.spec.js View on Github external
it('should return false if value is undefined', () => {
            expect(min(undefined, { value: 0 })).toEqual(false);
        });
github inkline / inkline / tests / unit / validators / min.spec.js View on Github external
it('should return false if value is null', () => {
            expect(min(null, { value: 0 })).toEqual(false);
        });