MCPcopy Index your code
hub / github.com/bitnbytesio/node-input-validator / t1

Function t1

t.js:8–30  ·  view source on GitHub ↗
(i = 0)

Source from the content-addressed store, hash-verified

6
7
8async function t1(i = 0) {
9
10 console.time('t1-' + i);
11
12 const v = new Validator({
13 name: 'artisangang',
14 password: '0000000000',
15 age: 31,
16 }, {
17 name: 'required|minLength:5|maxLength:8|alpha',
18 password: 'required|maxLength:5',
19 age: 'max:23',
20 email: 'required|email'
21 });
22
23
24 let matched = await v.fails();
25
26
27 console.timeEnd('t1-' + i);
28
29 assert.equal(matched, true);
30}
31
32let vSet = Validator.create({
33 name: 'required|minLength:5|maxLength:8|alpha',

Callers 1

t.jsFile · 0.85

Calls 1

failsMethod · 0.95

Tested by

no test coverage detected