Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/forms / build / dist / validators / __tests__ / length.test.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable max-statements */
const __1 = require("../");
describe('validators.length', () => {
    it('allows values with valid length', () => {
        expect(__1.isValidLength('Joe')).toBeTruthy();
        expect(__1.isValidLength('123')).toBeTruthy();
    });
    // now it does
    it.skip('does not allow undefined values', () => {
        expect(__1.isValidLength(undefined)).toBeFalsy();
        expect(__1.isValidLength(undefined)).toBeFalsy();
    });
    it('does not not allow empty values', () => {
        expect(__1.isValidLength('')).toBeFalsy();
        // White space is allowed?
        // expect(isValidLength(' ')).toBeFalsy()
    });
});
//# sourceMappingURL=length.test.js.map