Repository URL to install this package:
|
Version:
2.0.2 ▾
|
"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();
});
it('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