colingo/validate-form

2013-09-24 05:19:13
8.0
9.0
10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓16.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
✓6.0
✓6.0
4.2
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 40 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent # tests 55 # pass 55 # ok ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
firefox/nightly
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects not ok 2 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy","value":false}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":false}] ... ok 3 should be equal not ok 4 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... # Validator can validate multiple attributes ok 5 should be equal not ok 6 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"Expected key2 to be truthy","type":"truthy","value":0},{"attribute":"key3","message":"Expected key3 to be truthy","type":"truthy"}] actual: [{"description":"Expected key2 to be truthy","message":"Expected key2 to be truthy","type":"truthy","attribute":"key2","value":0},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3"}] ... # multiple validations per key not ok 7 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy","value":""},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range","value":""}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":""},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key","value":""}] ... not ok 8 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy"},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key"}] ... ok 9 should be equal # using function instead of array in schema not ok 10 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... ok 11 should be equal # can use custom function not ok 12 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"You got's to be good","type":"custom"}] actual: [{"description":"You got's to be good","message":"You got's to be good","type":"custom","attribute":"key"}] ... ok 13 should be equal # message formatting is optional with placeholders not ok 14 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Invalid range","type":"range","value":"four"}] actual: [{"description":"Invalid range","message":"Invalid range","type":"range","attribute":"key","value":"four"}] ... # truthy(message) not ok 15 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be truthy","type":"truthy"},{"attribute":"key2","message":"custom error for key2","type":"truthy"}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1"},{"description":"custom error for key2","message":"custom error for key2","type":"truthy","attribute":"key2"}] ... ok 16 should be equal # type(type, message) not ok 17 should be equivalent --- operator: deepEqual expected: [{"message":"Expected bool to be a boolean","attribute":"bool","type":"type","value":""},{"message":"Expected str to be a string","attribute":"str","type":"type","value":{}},{"message":"Expected obj to be a object","attribute":"obj","type":"type","value":0},{"message":"Expected num to be a number","attribute":"num","type":"type","value":true}] actual: [{"description":"Expected bool to be a boolean","message":"Expected bool to be a boolean","type":"type","attribute":"bool","value":""},{"description":"Expected str to be a string","message":"Expected str to be a string","type":"type","attribute":"str","value":{}},{"description":"Expected obj to be a object","message":"Expected obj to be a object","type":"type","attribute":"obj","value":0},{"description":"Expected num to be a number","message":"Expected num to be a number","type":"type","attribute":"num","value":true}] ... ok 18 should be equal # range(n, m, message) not ok 19 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be between 5 and 8 characters long","type":"range"},{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range"}] actual: [{"description":"Expected key1 to be between 5 and 8 characters long","message":"Expected key1 to be between 5 and 8 characters long","type":"range","attribute":"key1"},{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2"}] ... ok 20 should be equal not ok 21 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range","value":9}] actual: [{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2","value":9}] ... ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) not ok 26 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid email address","type":"email","value":"hello@foo"},{"attribute":"key2","message":"Invalid email in key2","type":"email","value":"fail@fail"}] actual: [{"description":"Expected key1 to be a valid email address","message":"Expected key1 to be a valid email address","type":"email","attribute":"key1","value":"hello@foo"},{"description":"Invalid email in key2","message":"Invalid email in key2","type":"email","attribute":"key2","value":"fail@fail"}] ... ok 27 should be equal # isCreditCard(message) not ok 28 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid credit card","type":"creditCard","value":"4112412"},{"attribute":"key2","message":"give us a real card yo.","type":"creditCard","value":"WRONG"}] actual: [{"description":"Expected key1 to be a valid credit card","message":"Expected key1 to be a valid credit card","type":"creditCard","attribute":"key1","value":"4112412"},{"description":"give us a real card yo.","message":"give us a real card yo.","type":"creditCard","attribute":"key2","value":"WRONG"}] ... ok 29 should be equal # min(n, message) not ok 30 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10 characters long","type":"min","value":"123456789"},{"attribute":"key2","message":"be at least 12","type":"min","value":"12345678901"}] actual: [{"description":"Expected key1 to be at least 10 characters long","message":"Expected key1 to be at least 10 characters long","type":"min","attribute":"key1","value":"123456789"},{"description":"be at least 12","message":"be at least 12","type":"min","attribute":"key2","value":"12345678901"}] ... ok 31 should be equal not ok 32 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10","type":"min","value":5}] actual: [{"description":"Expected key1 to be at least 10","message":"Expected key1 to be at least 10","type":"min","attribute":"key1","value":5}] ... # max(m, message) not ok 33 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5 characters long","type":"max","value":"123456"},{"attribute":"key2","message":"be at most 4","type":"max","value":"1234567"}] actual: [{"description":"Expected key1 to be at most 5 characters long","message":"Expected key1 to be at most 5 characters long","type":"max","attribute":"key1","value":"123456"},{"description":"be at most 4","message":"be at most 4","type":"max","attribute":"key2","value":"1234567"}] ... ok 34 should be equal not ok 35 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5","type":"max","value":6}] actual: [{"description":"Expected key1 to be at most 5","message":"Expected key1 to be at most 5","type":"max","attribute":"key1","value":6}] ... # size(n, message) not ok 36 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be exactly 4 characters long","type":"size","value":"12"},{"attribute":"key2","message":"got's to be the right size","type":"size","value":"1234567"}] actual: [{"description":"Expected key1 to be exactly 4 characters long","message":"Expected key1 to be exactly 4 characters long","type":"size","attribute":"key1","value":"12"},{"description":"got's to be the right size","message":"got's to be the right size","type":"size","attribute":"key2","value":"1234567"}] ... ok 37 should be equal # match(regex, message) not ok 38 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","value":"235/1253"},{"attribute":"key2","message":"custom message","type":"match","value":"foo15*@$*"}] actual: [{"description":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","attribute":"key1","value":"235/1253"},{"description":"custom message","message":"custom message","type":"match","attribute":"key2","value":"foo15*@$*"}] ... ok 39 should be equal # memberOf(whiteList, message) not ok 40 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","value":"fail"},{"attribute":"key2","message":"not in set!","type":"memberOf","value":"success"}] actual: [{"description":"Expected key1 to be in set { 1, 2, 3 }","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","attribute":"key1","value":"fail"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key2","value":"success"}] ... ok 41 should be equal # list({ min, max, length, content }, message) not ok 42 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1[4]","message":"Expected key1[4] to be truthy","type":"truthy","value":""},{"attribute":"key2","message":"Expected key2 to contain at least 4 items","type":"min","value":["invalid","number","of items"]},{"attribute":"key3[0]","message":"not in set!","type":"memberOf","value":"valid"},{"attribute":"key3[1]","message":"not in set!","type":"memberOf","value":"amount"},{"attribute":"key3[2]","message":"not in set!","type":"memberOf","value":"but not match enum"}] actual: [{"description":"Expected key1[4] to be truthy","message":"Expected key1[4] to be truthy","type":"truthy","attribute":"key1[4]","value":""},{"description":"Expected key2 to contain at least 4 items","message":"Expected key2 to contain at least 4 items","type":"min","attribute":"key2","value":["invalid","number","of items"]},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[0]","value":"valid"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[1]","value":"amount"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[2]","value":"but not match enum"}] ... ok 43 should be equal # optional(validator) not ok 44 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 45 should be equal # validateIf(key, test, validator) not ok 46 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) not ok 50 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":"Beep"}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":"Beep"}] ... not ok 51 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":true}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":true}] ... not ok 52 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":13}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":13}] ... ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 28 # fail 27
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects not ok 2 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy","value":false}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":false}] ... ok 3 should be equal not ok 4 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... # Validator can validate multiple attributes ok 5 should be equal not ok 6 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"Expected key2 to be truthy","type":"truthy","value":0},{"attribute":"key3","message":"Expected key3 to be truthy","type":"truthy"}] actual: [{"description":"Expected key2 to be truthy","message":"Expected key2 to be truthy","type":"truthy","attribute":"key2","value":0},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3"}] ... # multiple validations per key not ok 7 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy","value":""},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range","value":""}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":""},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key","value":""}] ... not ok 8 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy"},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key"}] ... ok 9 should be equal # using function instead of array in schema not ok 10 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... ok 11 should be equal # can use custom function not ok 12 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"You got's to be good","type":"custom"}] actual: [{"description":"You got's to be good","message":"You got's to be good","type":"custom","attribute":"key"}] ... ok 13 should be equal # message formatting is optional with placeholders not ok 14 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Invalid range","type":"range","value":"four"}] actual: [{"description":"Invalid range","message":"Invalid range","type":"range","attribute":"key","value":"four"}] ... # truthy(message) not ok 15 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be truthy","type":"truthy"},{"attribute":"key2","message":"custom error for key2","type":"truthy"}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1"},{"description":"custom error for key2","message":"custom error for key2","type":"truthy","attribute":"key2"}] ... ok 16 should be equal # type(type, message) not ok 17 should be equivalent --- operator: deepEqual expected: [{"message":"Expected bool to be a boolean","attribute":"bool","type":"type","value":""},{"message":"Expected str to be a string","attribute":"str","type":"type","value":{}},{"message":"Expected obj to be a object","attribute":"obj","type":"type","value":0},{"message":"Expected num to be a number","attribute":"num","type":"type","value":true}] actual: [{"description":"Expected bool to be a boolean","message":"Expected bool to be a boolean","type":"type","attribute":"bool","value":""},{"description":"Expected str to be a string","message":"Expected str to be a string","type":"type","attribute":"str","value":{}},{"description":"Expected obj to be a object","message":"Expected obj to be a object","type":"type","attribute":"obj","value":0},{"description":"Expected num to be a number","message":"Expected num to be a number","type":"type","attribute":"num","value":true}] ... ok 18 should be equal # range(n, m, message) not ok 19 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be between 5 and 8 characters long","type":"range"},{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range"}] actual: [{"description":"Expected key1 to be between 5 and 8 characters long","message":"Expected key1 to be between 5 and 8 characters long","type":"range","attribute":"key1"},{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2"}] ... ok 20 should be equal not ok 21 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range","value":9}] actual: [{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2","value":9}] ... ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) not ok 26 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid email address","type":"email","value":"hello@foo"},{"attribute":"key2","message":"Invalid email in key2","type":"email","value":"fail@fail"}] actual: [{"description":"Expected key1 to be a valid email address","message":"Expected key1 to be a valid email address","type":"email","attribute":"key1","value":"hello@foo"},{"description":"Invalid email in key2","message":"Invalid email in key2","type":"email","attribute":"key2","value":"fail@fail"}] ... ok 27 should be equal # isCreditCard(message) not ok 28 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid credit card","type":"creditCard","value":"4112412"},{"attribute":"key2","message":"give us a real card yo.","type":"creditCard","value":"WRONG"}] actual: [{"description":"Expected key1 to be a valid credit card","message":"Expected key1 to be a valid credit card","type":"creditCard","attribute":"key1","value":"4112412"},{"description":"give us a real card yo.","message":"give us a real card yo.","type":"creditCard","attribute":"key2","value":"WRONG"}] ... ok 29 should be equal # min(n, message) not ok 30 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10 characters long","type":"min","value":"123456789"},{"attribute":"key2","message":"be at least 12","type":"min","value":"12345678901"}] actual: [{"description":"Expected key1 to be at least 10 characters long","message":"Expected key1 to be at least 10 characters long","type":"min","attribute":"key1","value":"123456789"},{"description":"be at least 12","message":"be at least 12","type":"min","attribute":"key2","value":"12345678901"}] ... ok 31 should be equal not ok 32 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10","type":"min","value":5}] actual: [{"description":"Expected key1 to be at least 10","message":"Expected key1 to be at least 10","type":"min","attribute":"key1","value":5}] ... # max(m, message) not ok 33 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5 characters long","type":"max","value":"123456"},{"attribute":"key2","message":"be at most 4","type":"max","value":"1234567"}] actual: [{"description":"Expected key1 to be at most 5 characters long","message":"Expected key1 to be at most 5 characters long","type":"max","attribute":"key1","value":"123456"},{"description":"be at most 4","message":"be at most 4","type":"max","attribute":"key2","value":"1234567"}] ... ok 34 should be equal not ok 35 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5","type":"max","value":6}] actual: [{"description":"Expected key1 to be at most 5","message":"Expected key1 to be at most 5","type":"max","attribute":"key1","value":6}] ... # size(n, message) not ok 36 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be exactly 4 characters long","type":"size","value":"12"},{"attribute":"key2","message":"got's to be the right size","type":"size","value":"1234567"}] actual: [{"description":"Expected key1 to be exactly 4 characters long","message":"Expected key1 to be exactly 4 characters long","type":"size","attribute":"key1","value":"12"},{"description":"got's to be the right size","message":"got's to be the right size","type":"size","attribute":"key2","value":"1234567"}] ... ok 37 should be equal # match(regex, message) not ok 38 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","value":"235/1253"},{"attribute":"key2","message":"custom message","type":"match","value":"foo15*@$*"}] actual: [{"description":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","attribute":"key1","value":"235/1253"},{"description":"custom message","message":"custom message","type":"match","attribute":"key2","value":"foo15*@$*"}] ... ok 39 should be equal # memberOf(whiteList, message) not ok 40 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","value":"fail"},{"attribute":"key2","message":"not in set!","type":"memberOf","value":"success"}] actual: [{"description":"Expected key1 to be in set { 1, 2, 3 }","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","attribute":"key1","value":"fail"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key2","value":"success"}] ... ok 41 should be equal # list({ min, max, length, content }, message) not ok 42 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1[4]","message":"Expected key1[4] to be truthy","type":"truthy","value":""},{"attribute":"key2","message":"Expected key2 to contain at least 4 items","type":"min","value":["invalid","number","of items"]},{"attribute":"key3[0]","message":"not in set!","type":"memberOf","value":"valid"},{"attribute":"key3[1]","message":"not in set!","type":"memberOf","value":"amount"},{"attribute":"key3[2]","message":"not in set!","type":"memberOf","value":"but not match enum"}] actual: [{"description":"Expected key1[4] to be truthy","message":"Expected key1[4] to be truthy","type":"truthy","attribute":"key1[4]","value":""},{"description":"Expected key2 to contain at least 4 items","message":"Expected key2 to contain at least 4 items","type":"min","attribute":"key2","value":["invalid","number","of items"]},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[0]","value":"valid"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[1]","value":"amount"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[2]","value":"but not match enum"}] ... ok 43 should be equal # optional(validator) not ok 44 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 45 should be equal # validateIf(key, test, validator) not ok 46 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) not ok 50 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":"Beep"}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":"Beep"}] ... not ok 51 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":true}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":true}] ... not ok 52 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":13}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":13}] ... ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 28 # fail 27
timeout waiting to hear back from iexplore/8.0
2013-09-24 05:18:10
8.0
9.0
10.0
✓22.0
✓23.0
✓24.0
✓25.0
✓canary
26.0
27.0
28.0
29.0
✓16.0
✓17.0
✓18.0
✓19.0
✓nightly
20.0
21.0
22.0
23.0
24.0
5.1
6.0
✓12.0
✓next
15.0
✓6.0
6.0
4.2
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal TAP version 13 # Validator is a function ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
firefox/nightly
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) ok 50 should be equivalent ok 51 should be equivalent ok 52 should be equivalent ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 55 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects not ok 2 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy","value":false}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":false}] ... ok 3 should be equal not ok 4 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... # Validator can validate multiple attributes ok 5 should be equal not ok 6 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"Expected key2 to be truthy","type":"truthy","value":0},{"attribute":"key3","message":"Expected key3 to be truthy","type":"truthy"}] actual: [{"description":"Expected key2 to be truthy","message":"Expected key2 to be truthy","type":"truthy","attribute":"key2","value":0},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3"}] ... # multiple validations per key not ok 7 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy","value":""},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range","value":""}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":""},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key","value":""}] ... not ok 8 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy"},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key"}] ... ok 9 should be equal # using function instead of array in schema not ok 10 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... ok 11 should be equal # can use custom function not ok 12 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"You got's to be good","type":"custom"}] actual: [{"description":"You got's to be good","message":"You got's to be good","type":"custom","attribute":"key"}] ... ok 13 should be equal # message formatting is optional with placeholders not ok 14 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Invalid range","type":"range","value":"four"}] actual: [{"description":"Invalid range","message":"Invalid range","type":"range","attribute":"key","value":"four"}] ... # truthy(message) not ok 15 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be truthy","type":"truthy"},{"attribute":"key2","message":"custom error for key2","type":"truthy"}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1"},{"description":"custom error for key2","message":"custom error for key2","type":"truthy","attribute":"key2"}] ... ok 16 should be equal # type(type, message) not ok 17 should be equivalent --- operator: deepEqual expected: [{"message":"Expected bool to be a boolean","attribute":"bool","type":"type","value":""},{"message":"Expected str to be a string","attribute":"str","type":"type","value":{}},{"message":"Expected obj to be a object","attribute":"obj","type":"type","value":0},{"message":"Expected num to be a number","attribute":"num","type":"type","value":true}] actual: [{"description":"Expected bool to be a boolean","message":"Expected bool to be a boolean","type":"type","attribute":"bool","value":""},{"description":"Expected str to be a string","message":"Expected str to be a string","type":"type","attribute":"str","value":{}},{"description":"Expected obj to be a object","message":"Expected obj to be a object","type":"type","attribute":"obj","value":0},{"description":"Expected num to be a number","message":"Expected num to be a number","type":"type","attribute":"num","value":true}] ... ok 18 should be equal # range(n, m, message) not ok 19 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be between 5 and 8 characters long","type":"range"},{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range"}] actual: [{"description":"Expected key1 to be between 5 and 8 characters long","message":"Expected key1 to be between 5 and 8 characters long","type":"range","attribute":"key1"},{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2"}] ... ok 20 should be equal not ok 21 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range","value":9}] actual: [{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2","value":9}] ... ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) not ok 26 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid email address","type":"email","value":"hello@foo"},{"attribute":"key2","message":"Invalid email in key2","type":"email","value":"fail@fail"}] actual: [{"description":"Expected key1 to be a valid email address","message":"Expected key1 to be a valid email address","type":"email","attribute":"key1","value":"hello@foo"},{"description":"Invalid email in key2","message":"Invalid email in key2","type":"email","attribute":"key2","value":"fail@fail"}] ... ok 27 should be equal # isCreditCard(message) not ok 28 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid credit card","type":"creditCard","value":"4112412"},{"attribute":"key2","message":"give us a real card yo.","type":"creditCard","value":"WRONG"}] actual: [{"description":"Expected key1 to be a valid credit card","message":"Expected key1 to be a valid credit card","type":"creditCard","attribute":"key1","value":"4112412"},{"description":"give us a real card yo.","message":"give us a real card yo.","type":"creditCard","attribute":"key2","value":"WRONG"}] ... ok 29 should be equal # min(n, message) not ok 30 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10 characters long","type":"min","value":"123456789"},{"attribute":"key2","message":"be at least 12","type":"min","value":"12345678901"}] actual: [{"description":"Expected key1 to be at least 10 characters long","message":"Expected key1 to be at least 10 characters long","type":"min","attribute":"key1","value":"123456789"},{"description":"be at least 12","message":"be at least 12","type":"min","attribute":"key2","value":"12345678901"}] ... ok 31 should be equal not ok 32 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10","type":"min","value":5}] actual: [{"description":"Expected key1 to be at least 10","message":"Expected key1 to be at least 10","type":"min","attribute":"key1","value":5}] ... # max(m, message) not ok 33 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5 characters long","type":"max","value":"123456"},{"attribute":"key2","message":"be at most 4","type":"max","value":"1234567"}] actual: [{"description":"Expected key1 to be at most 5 characters long","message":"Expected key1 to be at most 5 characters long","type":"max","attribute":"key1","value":"123456"},{"description":"be at most 4","message":"be at most 4","type":"max","attribute":"key2","value":"1234567"}] ... ok 34 should be equal not ok 35 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5","type":"max","value":6}] actual: [{"description":"Expected key1 to be at most 5","message":"Expected key1 to be at most 5","type":"max","attribute":"key1","value":6}] ... # size(n, message) not ok 36 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be exactly 4 characters long","type":"size","value":"12"},{"attribute":"key2","message":"got's to be the right size","type":"size","value":"1234567"}] actual: [{"description":"Expected key1 to be exactly 4 characters long","message":"Expected key1 to be exactly 4 characters long","type":"size","attribute":"key1","value":"12"},{"description":"got's to be the right size","message":"got's to be the right size","type":"size","attribute":"key2","value":"1234567"}] ... ok 37 should be equal # match(regex, message) not ok 38 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","value":"235/1253"},{"attribute":"key2","message":"custom message","type":"match","value":"foo15*@$*"}] actual: [{"description":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","attribute":"key1","value":"235/1253"},{"description":"custom message","message":"custom message","type":"match","attribute":"key2","value":"foo15*@$*"}] ... ok 39 should be equal # memberOf(whiteList, message) not ok 40 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","value":"fail"},{"attribute":"key2","message":"not in set!","type":"memberOf","value":"success"}] actual: [{"description":"Expected key1 to be in set { 1, 2, 3 }","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","attribute":"key1","value":"fail"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key2","value":"success"}] ... ok 41 should be equal # list({ min, max, length, content }, message) not ok 42 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1[4]","message":"Expected key1[4] to be truthy","type":"truthy","value":""},{"attribute":"key2","message":"Expected key2 to contain at least 4 items","type":"min","value":["invalid","number","of items"]},{"attribute":"key3[0]","message":"not in set!","type":"memberOf","value":"valid"},{"attribute":"key3[1]","message":"not in set!","type":"memberOf","value":"amount"},{"attribute":"key3[2]","message":"not in set!","type":"memberOf","value":"but not match enum"}] actual: [{"description":"Expected key1[4] to be truthy","message":"Expected key1[4] to be truthy","type":"truthy","attribute":"key1[4]","value":""},{"description":"Expected key2 to contain at least 4 items","message":"Expected key2 to contain at least 4 items","type":"min","attribute":"key2","value":["invalid","number","of items"]},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[0]","value":"valid"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[1]","value":"amount"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[2]","value":"but not match enum"}] ... ok 43 should be equal # optional(validator) not ok 44 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 45 should be equal # validateIf(key, test, validator) not ok 46 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) not ok 50 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":"Beep"}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":"Beep"}] ... not ok 51 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":true}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":true}] ... not ok 52 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":13}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":13}] ... ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 28 # fail 27
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects not ok 2 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy","value":false}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":false}] ... ok 3 should be equal not ok 4 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... # Validator can validate multiple attributes ok 5 should be equal not ok 6 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"Expected key2 to be truthy","type":"truthy","value":0},{"attribute":"key3","message":"Expected key3 to be truthy","type":"truthy"}] actual: [{"description":"Expected key2 to be truthy","message":"Expected key2 to be truthy","type":"truthy","attribute":"key2","value":0},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3"}] ... # multiple validations per key not ok 7 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy","value":""},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range","value":""}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":""},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key","value":""}] ... not ok 8 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy"},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key"}] ... ok 9 should be equal # using function instead of array in schema not ok 10 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... ok 11 should be equal # can use custom function not ok 12 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"You got's to be good","type":"custom"}] actual: [{"description":"You got's to be good","message":"You got's to be good","type":"custom","attribute":"key"}] ... ok 13 should be equal # message formatting is optional with placeholders not ok 14 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Invalid range","type":"range","value":"four"}] actual: [{"description":"Invalid range","message":"Invalid range","type":"range","attribute":"key","value":"four"}] ... # truthy(message) not ok 15 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be truthy","type":"truthy"},{"attribute":"key2","message":"custom error for key2","type":"truthy"}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1"},{"description":"custom error for key2","message":"custom error for key2","type":"truthy","attribute":"key2"}] ... ok 16 should be equal # type(type, message) not ok 17 should be equivalent --- operator: deepEqual expected: [{"message":"Expected bool to be a boolean","attribute":"bool","type":"type","value":""},{"message":"Expected str to be a string","attribute":"str","type":"type","value":{}},{"message":"Expected obj to be a object","attribute":"obj","type":"type","value":0},{"message":"Expected num to be a number","attribute":"num","type":"type","value":true}] actual: [{"description":"Expected bool to be a boolean","message":"Expected bool to be a boolean","type":"type","attribute":"bool","value":""},{"description":"Expected str to be a string","message":"Expected str to be a string","type":"type","attribute":"str","value":{}},{"description":"Expected obj to be a object","message":"Expected obj to be a object","type":"type","attribute":"obj","value":0},{"description":"Expected num to be a number","message":"Expected num to be a number","type":"type","attribute":"num","value":true}] ... ok 18 should be equal # range(n, m, message) not ok 19 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be between 5 and 8 characters long","type":"range"},{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range"}] actual: [{"description":"Expected key1 to be between 5 and 8 characters long","message":"Expected key1 to be between 5 and 8 characters long","type":"range","attribute":"key1"},{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2"}] ... ok 20 should be equal not ok 21 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range","value":9}] actual: [{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2","value":9}] ... ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) not ok 26 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid email address","type":"email","value":"hello@foo"},{"attribute":"key2","message":"Invalid email in key2","type":"email","value":"fail@fail"}] actual: [{"description":"Expected key1 to be a valid email address","message":"Expected key1 to be a valid email address","type":"email","attribute":"key1","value":"hello@foo"},{"description":"Invalid email in key2","message":"Invalid email in key2","type":"email","attribute":"key2","value":"fail@fail"}] ... ok 27 should be equal # isCreditCard(message) not ok 28 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid credit card","type":"creditCard","value":"4112412"},{"attribute":"key2","message":"give us a real card yo.","type":"creditCard","value":"WRONG"}] actual: [{"description":"Expected key1 to be a valid credit card","message":"Expected key1 to be a valid credit card","type":"creditCard","attribute":"key1","value":"4112412"},{"description":"give us a real card yo.","message":"give us a real card yo.","type":"creditCard","attribute":"key2","value":"WRONG"}] ... ok 29 should be equal # min(n, message) not ok 30 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10 characters long","type":"min","value":"123456789"},{"attribute":"key2","message":"be at least 12","type":"min","value":"12345678901"}] actual: [{"description":"Expected key1 to be at least 10 characters long","message":"Expected key1 to be at least 10 characters long","type":"min","attribute":"key1","value":"123456789"},{"description":"be at least 12","message":"be at least 12","type":"min","attribute":"key2","value":"12345678901"}] ... ok 31 should be equal not ok 32 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10","type":"min","value":5}] actual: [{"description":"Expected key1 to be at least 10","message":"Expected key1 to be at least 10","type":"min","attribute":"key1","value":5}] ... # max(m, message) not ok 33 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5 characters long","type":"max","value":"123456"},{"attribute":"key2","message":"be at most 4","type":"max","value":"1234567"}] actual: [{"description":"Expected key1 to be at most 5 characters long","message":"Expected key1 to be at most 5 characters long","type":"max","attribute":"key1","value":"123456"},{"description":"be at most 4","message":"be at most 4","type":"max","attribute":"key2","value":"1234567"}] ... ok 34 should be equal not ok 35 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5","type":"max","value":6}] actual: [{"description":"Expected key1 to be at most 5","message":"Expected key1 to be at most 5","type":"max","attribute":"key1","value":6}] ... # size(n, message) not ok 36 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be exactly 4 characters long","type":"size","value":"12"},{"attribute":"key2","message":"got's to be the right size","type":"size","value":"1234567"}] actual: [{"description":"Expected key1 to be exactly 4 characters long","message":"Expected key1 to be exactly 4 characters long","type":"size","attribute":"key1","value":"12"},{"description":"got's to be the right size","message":"got's to be the right size","type":"size","attribute":"key2","value":"1234567"}] ... ok 37 should be equal # match(regex, message) not ok 38 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","value":"235/1253"},{"attribute":"key2","message":"custom message","type":"match","value":"foo15*@$*"}] actual: [{"description":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","attribute":"key1","value":"235/1253"},{"description":"custom message","message":"custom message","type":"match","attribute":"key2","value":"foo15*@$*"}] ... ok 39 should be equal # memberOf(whiteList, message) not ok 40 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","value":"fail"},{"attribute":"key2","message":"not in set!","type":"memberOf","value":"success"}] actual: [{"description":"Expected key1 to be in set { 1, 2, 3 }","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","attribute":"key1","value":"fail"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key2","value":"success"}] ... ok 41 should be equal # list({ min, max, length, content }, message) not ok 42 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1[4]","message":"Expected key1[4] to be truthy","type":"truthy","value":""},{"attribute":"key2","message":"Expected key2 to contain at least 4 items","type":"min","value":["invalid","number","of items"]},{"attribute":"key3[0]","message":"not in set!","type":"memberOf","value":"valid"},{"attribute":"key3[1]","message":"not in set!","type":"memberOf","value":"amount"},{"attribute":"key3[2]","message":"not in set!","type":"memberOf","value":"but not match enum"}] actual: [{"description":"Expected key1[4] to be truthy","message":"Expected key1[4] to be truthy","type":"truthy","attribute":"key1[4]","value":""},{"description":"Expected key2 to contain at least 4 items","message":"Expected key2 to contain at least 4 items","type":"min","attribute":"key2","value":["invalid","number","of items"]},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[0]","value":"valid"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[1]","value":"amount"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[2]","value":"but not match enum"}] ... ok 43 should be equal # optional(validator) not ok 44 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 45 should be equal # validateIf(key, test, validator) not ok 46 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 47 should be equal ok 48 should be equal ok 49 should be equal # equal(key, message) not ok 50 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":"Beep"}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":"Beep"}] ... not ok 51 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":true}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":true}] ... not ok 52 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be equal to key2","type":"equal","value":13}] actual: [{"description":"Expected key1 to be equal to key2","message":"Expected key1 to be equal to key2","type":"equal","attribute":"key1","value":13}] ... ok 53 should be equal ok 54 should be equal ok 55 should be equal 1..55 # tests 55 # pass 28 # fail 27
timeout waiting to hear back from iexplore/8.0
2013-09-23 22:42:27
8.0
10.0
9.0
22.0
23.0
24.0
25.0
26.0
27.0
28.0
29.0
canary
16.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
nightly
✓6.0
5.1
12.0
15.0
next
✓6.0
✓6.0
4.2
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 49 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 49 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 49 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects not ok 2 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy","value":false}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":false}] ... ok 3 should be equal not ok 4 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... # Validator can validate multiple attributes ok 5 should be equal not ok 6 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"Expected key2 to be truthy","type":"truthy","value":0},{"attribute":"key3","message":"Expected key3 to be truthy","type":"truthy"}] actual: [{"description":"Expected key2 to be truthy","message":"Expected key2 to be truthy","type":"truthy","attribute":"key2","value":0},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3"}] ... # multiple validations per key not ok 7 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy","value":""},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range","value":""}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":""},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key","value":""}] ... not ok 8 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy"},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key"}] ... ok 9 should be equal # using function instead of array in schema not ok 10 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... ok 11 should be equal # can use custom function not ok 12 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"You got's to be good","type":"custom"}] actual: [{"description":"You got's to be good","message":"You got's to be good","type":"custom","attribute":"key"}] ... ok 13 should be equal # message formatting is optional with placeholders not ok 14 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Invalid range","type":"range","value":"four"}] actual: [{"description":"Invalid range","message":"Invalid range","type":"range","attribute":"key","value":"four"}] ... # truthy(message) not ok 15 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be truthy","type":"truthy"},{"attribute":"key2","message":"custom error for key2","type":"truthy"}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1"},{"description":"custom error for key2","message":"custom error for key2","type":"truthy","attribute":"key2"}] ... ok 16 should be equal # type(type, message) not ok 17 should be equivalent --- operator: deepEqual expected: [{"message":"Expected bool to be a boolean","attribute":"bool","type":"type","value":""},{"message":"Expected str to be a string","attribute":"str","type":"type","value":{}},{"message":"Expected obj to be a object","attribute":"obj","type":"type","value":0},{"message":"Expected num to be a number","attribute":"num","type":"type","value":true}] actual: [{"description":"Expected bool to be a boolean","message":"Expected bool to be a boolean","type":"type","attribute":"bool","value":""},{"description":"Expected str to be a string","message":"Expected str to be a string","type":"type","attribute":"str","value":{}},{"description":"Expected obj to be a object","message":"Expected obj to be a object","type":"type","attribute":"obj","value":0},{"description":"Expected num to be a number","message":"Expected num to be a number","type":"type","attribute":"num","value":true}] ... ok 18 should be equal # range(n, m, message) not ok 19 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be between 5 and 8 characters long","type":"range"},{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range"}] actual: [{"description":"Expected key1 to be between 5 and 8 characters long","message":"Expected key1 to be between 5 and 8 characters long","type":"range","attribute":"key1"},{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2"}] ... ok 20 should be equal not ok 21 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range","value":9}] actual: [{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2","value":9}] ... ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) not ok 26 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid email address","type":"email","value":"hello@foo"},{"attribute":"key2","message":"Invalid email in key2","type":"email","value":"fail@fail"}] actual: [{"description":"Expected key1 to be a valid email address","message":"Expected key1 to be a valid email address","type":"email","attribute":"key1","value":"hello@foo"},{"description":"Invalid email in key2","message":"Invalid email in key2","type":"email","attribute":"key2","value":"fail@fail"}] ... ok 27 should be equal # isCreditCard(message) not ok 28 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid credit card","type":"creditCard","value":"4112412"},{"attribute":"key2","message":"give us a real card yo.","type":"creditCard","value":"WRONG"}] actual: [{"description":"Expected key1 to be a valid credit card","message":"Expected key1 to be a valid credit card","type":"creditCard","attribute":"key1","value":"4112412"},{"description":"give us a real card yo.","message":"give us a real card yo.","type":"creditCard","attribute":"key2","value":"WRONG"}] ... ok 29 should be equal # min(n, message) not ok 30 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10 characters long","type":"min","value":"123456789"},{"attribute":"key2","message":"be at least 12","type":"min","value":"12345678901"}] actual: [{"description":"Expected key1 to be at least 10 characters long","message":"Expected key1 to be at least 10 characters long","type":"min","attribute":"key1","value":"123456789"},{"description":"be at least 12","message":"be at least 12","type":"min","attribute":"key2","value":"12345678901"}] ... ok 31 should be equal not ok 32 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10","type":"min","value":5}] actual: [{"description":"Expected key1 to be at least 10","message":"Expected key1 to be at least 10","type":"min","attribute":"key1","value":5}] ... # max(m, message) not ok 33 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5 characters long","type":"max","value":"123456"},{"attribute":"key2","message":"be at most 4","type":"max","value":"1234567"}] actual: [{"description":"Expected key1 to be at most 5 characters long","message":"Expected key1 to be at most 5 characters long","type":"max","attribute":"key1","value":"123456"},{"description":"be at most 4","message":"be at most 4","type":"max","attribute":"key2","value":"1234567"}] ... ok 34 should be equal not ok 35 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5","type":"max","value":6}] actual: [{"description":"Expected key1 to be at most 5","message":"Expected key1 to be at most 5","type":"max","attribute":"key1","value":6}] ... # size(n, message) not ok 36 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be exactly 4 characters long","type":"size","value":"12"},{"attribute":"key2","message":"got's to be the right size","type":"size","value":"1234567"}] actual: [{"description":"Expected key1 to be exactly 4 characters long","message":"Expected key1 to be exactly 4 characters long","type":"size","attribute":"key1","value":"12"},{"description":"got's to be the right size","message":"got's to be the right size","type":"size","attribute":"key2","value":"1234567"}] ... ok 37 should be equal # match(regex, message) not ok 38 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","value":"235/1253"},{"attribute":"key2","message":"custom message","type":"match","value":"foo15*@$*"}] actual: [{"description":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","attribute":"key1","value":"235/1253"},{"description":"custom message","message":"custom message","type":"match","attribute":"key2","value":"foo15*@$*"}] ... ok 39 should be equal # memberOf(whiteList, message) not ok 40 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","value":"fail"},{"attribute":"key2","message":"not in set!","type":"memberOf","value":"success"}] actual: [{"description":"Expected key1 to be in set { 1, 2, 3 }","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","attribute":"key1","value":"fail"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key2","value":"success"}] ... ok 41 should be equal # list({ min, max, length, content }, message) not ok 42 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1[4]","message":"Expected key1[4] to be truthy","type":"truthy","value":""},{"attribute":"key2","message":"Expected key2 to contain at least 4 items","type":"min","value":["invalid","number","of items"]},{"attribute":"key3[0]","message":"not in set!","type":"memberOf","value":"valid"},{"attribute":"key3[1]","message":"not in set!","type":"memberOf","value":"amount"},{"attribute":"key3[2]","message":"not in set!","type":"memberOf","value":"but not match enum"}] actual: [{"description":"Expected key1[4] to be truthy","message":"Expected key1[4] to be truthy","type":"truthy","attribute":"key1[4]","value":""},{"description":"Expected key2 to contain at least 4 items","message":"Expected key2 to contain at least 4 items","type":"min","attribute":"key2","value":["invalid","number","of items"]},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[0]","value":"valid"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[1]","value":"amount"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[2]","value":"but not match enum"}] ... ok 43 should be equal # optional(validator) not ok 44 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 45 should be equal # validateIf(key, test, validator) not ok 46 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 25 # fail 24
timeout waiting to hear back from iexplore/8.0
2013-09-23 22:40:54
8.0
10.0
9.0
22.0
23.0
24.0
25.0
26.0
27.0
28.0
29.0
canary
16.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
nightly
✓6.0
5.1
12.0
15.0
next
✓6.0
✓6.0
4.2
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 49 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 49 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal # validateIf(key, test, validator) ok 46 should be equivalent ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 49 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects not ok 2 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy","value":false}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":false}] ... ok 3 should be equal not ok 4 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... # Validator can validate multiple attributes ok 5 should be equal not ok 6 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"Expected key2 to be truthy","type":"truthy","value":0},{"attribute":"key3","message":"Expected key3 to be truthy","type":"truthy"}] actual: [{"description":"Expected key2 to be truthy","message":"Expected key2 to be truthy","type":"truthy","attribute":"key2","value":0},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3"}] ... # multiple validations per key not ok 7 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy","value":""},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range","value":""}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":""},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key","value":""}] ... not ok 8 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy"},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key"}] ... ok 9 should be equal # using function instead of array in schema not ok 10 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... ok 11 should be equal # can use custom function not ok 12 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"You got's to be good","type":"custom"}] actual: [{"description":"You got's to be good","message":"You got's to be good","type":"custom","attribute":"key"}] ... ok 13 should be equal # message formatting is optional with placeholders not ok 14 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Invalid range","type":"range","value":"four"}] actual: [{"description":"Invalid range","message":"Invalid range","type":"range","attribute":"key","value":"four"}] ... # truthy(message) not ok 15 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be truthy","type":"truthy"},{"attribute":"key2","message":"custom error for key2","type":"truthy"}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1"},{"description":"custom error for key2","message":"custom error for key2","type":"truthy","attribute":"key2"}] ... ok 16 should be equal # type(type, message) not ok 17 should be equivalent --- operator: deepEqual expected: [{"message":"Expected bool to be a boolean","attribute":"bool","type":"type","value":""},{"message":"Expected str to be a string","attribute":"str","type":"type","value":{}},{"message":"Expected obj to be a object","attribute":"obj","type":"type","value":0},{"message":"Expected num to be a number","attribute":"num","type":"type","value":true}] actual: [{"description":"Expected bool to be a boolean","message":"Expected bool to be a boolean","type":"type","attribute":"bool","value":""},{"description":"Expected str to be a string","message":"Expected str to be a string","type":"type","attribute":"str","value":{}},{"description":"Expected obj to be a object","message":"Expected obj to be a object","type":"type","attribute":"obj","value":0},{"description":"Expected num to be a number","message":"Expected num to be a number","type":"type","attribute":"num","value":true}] ... ok 18 should be equal # range(n, m, message) not ok 19 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be between 5 and 8 characters long","type":"range"},{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range"}] actual: [{"description":"Expected key1 to be between 5 and 8 characters long","message":"Expected key1 to be between 5 and 8 characters long","type":"range","attribute":"key1"},{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2"}] ... ok 20 should be equal not ok 21 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range","value":9}] actual: [{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2","value":9}] ... ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) not ok 26 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid email address","type":"email","value":"hello@foo"},{"attribute":"key2","message":"Invalid email in key2","type":"email","value":"fail@fail"}] actual: [{"description":"Expected key1 to be a valid email address","message":"Expected key1 to be a valid email address","type":"email","attribute":"key1","value":"hello@foo"},{"description":"Invalid email in key2","message":"Invalid email in key2","type":"email","attribute":"key2","value":"fail@fail"}] ... ok 27 should be equal # isCreditCard(message) not ok 28 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid credit card","type":"creditCard","value":"4112412"},{"attribute":"key2","message":"give us a real card yo.","type":"creditCard","value":"WRONG"}] actual: [{"description":"Expected key1 to be a valid credit card","message":"Expected key1 to be a valid credit card","type":"creditCard","attribute":"key1","value":"4112412"},{"description":"give us a real card yo.","message":"give us a real card yo.","type":"creditCard","attribute":"key2","value":"WRONG"}] ... ok 29 should be equal # min(n, message) not ok 30 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10 characters long","type":"min","value":"123456789"},{"attribute":"key2","message":"be at least 12","type":"min","value":"12345678901"}] actual: [{"description":"Expected key1 to be at least 10 characters long","message":"Expected key1 to be at least 10 characters long","type":"min","attribute":"key1","value":"123456789"},{"description":"be at least 12","message":"be at least 12","type":"min","attribute":"key2","value":"12345678901"}] ... ok 31 should be equal not ok 32 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10","type":"min","value":5}] actual: [{"description":"Expected key1 to be at least 10","message":"Expected key1 to be at least 10","type":"min","attribute":"key1","value":5}] ... # max(m, message) not ok 33 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5 characters long","type":"max","value":"123456"},{"attribute":"key2","message":"be at most 4","type":"max","value":"1234567"}] actual: [{"description":"Expected key1 to be at most 5 characters long","message":"Expected key1 to be at most 5 characters long","type":"max","attribute":"key1","value":"123456"},{"description":"be at most 4","message":"be at most 4","type":"max","attribute":"key2","value":"1234567"}] ... ok 34 should be equal not ok 35 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5","type":"max","value":6}] actual: [{"description":"Expected key1 to be at most 5","message":"Expected key1 to be at most 5","type":"max","attribute":"key1","value":6}] ... # size(n, message) not ok 36 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be exactly 4 characters long","type":"size","value":"12"},{"attribute":"key2","message":"got's to be the right size","type":"size","value":"1234567"}] actual: [{"description":"Expected key1 to be exactly 4 characters long","message":"Expected key1 to be exactly 4 characters long","type":"size","attribute":"key1","value":"12"},{"description":"got's to be the right size","message":"got's to be the right size","type":"size","attribute":"key2","value":"1234567"}] ... ok 37 should be equal # match(regex, message) not ok 38 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","value":"235/1253"},{"attribute":"key2","message":"custom message","type":"match","value":"foo15*@$*"}] actual: [{"description":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","attribute":"key1","value":"235/1253"},{"description":"custom message","message":"custom message","type":"match","attribute":"key2","value":"foo15*@$*"}] ... ok 39 should be equal # memberOf(whiteList, message) not ok 40 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","value":"fail"},{"attribute":"key2","message":"not in set!","type":"memberOf","value":"success"}] actual: [{"description":"Expected key1 to be in set { 1, 2, 3 }","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","attribute":"key1","value":"fail"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key2","value":"success"}] ... ok 41 should be equal # list({ min, max, length, content }, message) not ok 42 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1[4]","message":"Expected key1[4] to be truthy","type":"truthy","value":""},{"attribute":"key2","message":"Expected key2 to contain at least 4 items","type":"min","value":["invalid","number","of items"]},{"attribute":"key3[0]","message":"not in set!","type":"memberOf","value":"valid"},{"attribute":"key3[1]","message":"not in set!","type":"memberOf","value":"amount"},{"attribute":"key3[2]","message":"not in set!","type":"memberOf","value":"but not match enum"}] actual: [{"description":"Expected key1[4] to be truthy","message":"Expected key1[4] to be truthy","type":"truthy","attribute":"key1[4]","value":""},{"description":"Expected key2 to contain at least 4 items","message":"Expected key2 to contain at least 4 items","type":"min","attribute":"key2","value":["invalid","number","of items"]},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[0]","value":"valid"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[1]","value":"amount"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[2]","value":"but not match enum"}] ... ok 43 should be equal # optional(validator) not ok 44 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 45 should be equal # validateIf(key, test, validator) not ok 46 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 47 should be equal ok 48 should be equal ok 49 should be equal 1..49 # tests 49 # pass 25 # fail 24
timeout waiting to hear back from iexplore/8.0
2013-09-19 03:41:28
8.0
10.0
9.0
22.0
23.0
24.0
25.0
26.0
27.0
28.0
29.0
canary
16.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
nightly
✓6.0
5.1
12.0
15.0
next
✓6.0
✓6.0
4.2
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal 1..45 # tests 45 # pass 45 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal 1..45 # tests 45 # pass 45 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal 1..45 # tests 45 # pass 45 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects not ok 2 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy","value":false}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":false}] ... ok 3 should be equal not ok 4 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... # Validator can validate multiple attributes ok 5 should be equal not ok 6 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"Expected key2 to be truthy","type":"truthy","value":0},{"attribute":"key3","message":"Expected key3 to be truthy","type":"truthy"}] actual: [{"description":"Expected key2 to be truthy","message":"Expected key2 to be truthy","type":"truthy","attribute":"key2","value":0},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3"}] ... # multiple validations per key not ok 7 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy","value":""},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range","value":""}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key","value":""},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key","value":""}] ... not ok 8 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key to be truthy","attribute":"key","type":"truthy"},{"message":"Expected key to be between 5 and 8 characters long","attribute":"key","type":"range"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"},{"description":"Expected key to be between 5 and 8 characters long","message":"Expected key to be between 5 and 8 characters long","type":"range","attribute":"key"}] ... ok 9 should be equal # using function instead of array in schema not ok 10 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Expected key to be truthy","type":"truthy"}] actual: [{"description":"Expected key to be truthy","message":"Expected key to be truthy","type":"truthy","attribute":"key"}] ... ok 11 should be equal # can use custom function not ok 12 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"You got's to be good","type":"custom"}] actual: [{"description":"You got's to be good","message":"You got's to be good","type":"custom","attribute":"key"}] ... ok 13 should be equal # message formatting is optional with placeholders not ok 14 should be equivalent --- operator: deepEqual expected: [{"attribute":"key","message":"Invalid range","type":"range","value":"four"}] actual: [{"description":"Invalid range","message":"Invalid range","type":"range","attribute":"key","value":"four"}] ... # truthy(message) not ok 15 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be truthy","type":"truthy"},{"attribute":"key2","message":"custom error for key2","type":"truthy"}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1"},{"description":"custom error for key2","message":"custom error for key2","type":"truthy","attribute":"key2"}] ... ok 16 should be equal # type(type, message) not ok 17 should be equivalent --- operator: deepEqual expected: [{"message":"Expected bool to be a boolean","attribute":"bool","type":"type","value":""},{"message":"Expected str to be a string","attribute":"str","type":"type","value":{}},{"message":"Expected obj to be a object","attribute":"obj","type":"type","value":0},{"message":"Expected num to be a number","attribute":"num","type":"type","value":true}] actual: [{"description":"Expected bool to be a boolean","message":"Expected bool to be a boolean","type":"type","attribute":"bool","value":""},{"description":"Expected str to be a string","message":"Expected str to be a string","type":"type","attribute":"str","value":{}},{"description":"Expected obj to be a object","message":"Expected obj to be a object","type":"type","attribute":"obj","value":0},{"description":"Expected num to be a number","message":"Expected num to be a number","type":"type","attribute":"num","value":true}] ... ok 18 should be equal # range(n, m, message) not ok 19 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be between 5 and 8 characters long","type":"range"},{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range"}] actual: [{"description":"Expected key1 to be between 5 and 8 characters long","message":"Expected key1 to be between 5 and 8 characters long","type":"range","attribute":"key1"},{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2"}] ... ok 20 should be equal not ok 21 should be equivalent --- operator: deepEqual expected: [{"attribute":"key2","message":"key2 Must be greater then 5 and less then 8","type":"range","value":9}] actual: [{"description":"key2 Must be greater then 5 and less then 8","message":"key2 Must be greater then 5 and less then 8","type":"range","attribute":"key2","value":9}] ... ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) not ok 26 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid email address","type":"email","value":"hello@foo"},{"attribute":"key2","message":"Invalid email in key2","type":"email","value":"fail@fail"}] actual: [{"description":"Expected key1 to be a valid email address","message":"Expected key1 to be a valid email address","type":"email","attribute":"key1","value":"hello@foo"},{"description":"Invalid email in key2","message":"Invalid email in key2","type":"email","attribute":"key2","value":"fail@fail"}] ... ok 27 should be equal # isCreditCard(message) not ok 28 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be a valid credit card","type":"creditCard","value":"4112412"},{"attribute":"key2","message":"give us a real card yo.","type":"creditCard","value":"WRONG"}] actual: [{"description":"Expected key1 to be a valid credit card","message":"Expected key1 to be a valid credit card","type":"creditCard","attribute":"key1","value":"4112412"},{"description":"give us a real card yo.","message":"give us a real card yo.","type":"creditCard","attribute":"key2","value":"WRONG"}] ... ok 29 should be equal # min(n, message) not ok 30 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10 characters long","type":"min","value":"123456789"},{"attribute":"key2","message":"be at least 12","type":"min","value":"12345678901"}] actual: [{"description":"Expected key1 to be at least 10 characters long","message":"Expected key1 to be at least 10 characters long","type":"min","attribute":"key1","value":"123456789"},{"description":"be at least 12","message":"be at least 12","type":"min","attribute":"key2","value":"12345678901"}] ... ok 31 should be equal not ok 32 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at least 10","type":"min","value":5}] actual: [{"description":"Expected key1 to be at least 10","message":"Expected key1 to be at least 10","type":"min","attribute":"key1","value":5}] ... # max(m, message) not ok 33 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5 characters long","type":"max","value":"123456"},{"attribute":"key2","message":"be at most 4","type":"max","value":"1234567"}] actual: [{"description":"Expected key1 to be at most 5 characters long","message":"Expected key1 to be at most 5 characters long","type":"max","attribute":"key1","value":"123456"},{"description":"be at most 4","message":"be at most 4","type":"max","attribute":"key2","value":"1234567"}] ... ok 34 should be equal not ok 35 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be at most 5","type":"max","value":6}] actual: [{"description":"Expected key1 to be at most 5","message":"Expected key1 to be at most 5","type":"max","attribute":"key1","value":6}] ... # size(n, message) not ok 36 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be exactly 4 characters long","type":"size","value":"12"},{"attribute":"key2","message":"got's to be the right size","type":"size","value":"1234567"}] actual: [{"description":"Expected key1 to be exactly 4 characters long","message":"Expected key1 to be exactly 4 characters long","type":"size","attribute":"key1","value":"12"},{"description":"got's to be the right size","message":"got's to be the right size","type":"size","attribute":"key2","value":"1234567"}] ... ok 37 should be equal # match(regex, message) not ok 38 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","value":"235/1253"},{"attribute":"key2","message":"custom message","type":"match","value":"foo15*@$*"}] actual: [{"description":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","message":"Expected key1 to match /^\\d\\d\\d\\d\\/\\d\\d$/","type":"match","attribute":"key1","value":"235/1253"},{"description":"custom message","message":"custom message","type":"match","attribute":"key2","value":"foo15*@$*"}] ... ok 39 should be equal # memberOf(whiteList, message) not ok 40 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","value":"fail"},{"attribute":"key2","message":"not in set!","type":"memberOf","value":"success"}] actual: [{"description":"Expected key1 to be in set { 1, 2, 3 }","message":"Expected key1 to be in set { 1, 2, 3 }","type":"memberOf","attribute":"key1","value":"fail"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key2","value":"success"}] ... ok 41 should be equal # list({ min, max, length, content }, message) not ok 42 should be equivalent --- operator: deepEqual expected: [{"attribute":"key1[4]","message":"Expected key1[4] to be truthy","type":"truthy","value":""},{"attribute":"key2","message":"Expected key2 to contain at least 4 items","type":"min","value":["invalid","number","of items"]},{"attribute":"key3[0]","message":"not in set!","type":"memberOf","value":"valid"},{"attribute":"key3[1]","message":"not in set!","type":"memberOf","value":"amount"},{"attribute":"key3[2]","message":"not in set!","type":"memberOf","value":"but not match enum"}] actual: [{"description":"Expected key1[4] to be truthy","message":"Expected key1[4] to be truthy","type":"truthy","attribute":"key1[4]","value":""},{"description":"Expected key2 to contain at least 4 items","message":"Expected key2 to contain at least 4 items","type":"min","attribute":"key2","value":["invalid","number","of items"]},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[0]","value":"valid"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[1]","value":"amount"},{"description":"not in set!","message":"not in set!","type":"memberOf","attribute":"key3[2]","value":"but not match enum"}] ... ok 43 should be equal # optional(validator) not ok 44 should be equivalent --- operator: deepEqual expected: [{"message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] actual: [{"description":"Expected key1 to be truthy","message":"Expected key1 to be truthy","type":"truthy","attribute":"key1","value":false},{"description":"Expected key2 to between 0 and 5","message":"Expected key2 to between 0 and 5","type":"range","attribute":"key2","value":-5},{"description":"Expected key3 to be truthy","message":"Expected key3 to be truthy","type":"truthy","attribute":"key3","value":0}] ... ok 45 should be equal 1..45 # tests 45 # pass 22 # fail 23
timeout waiting to hear back from iexplore/8.0
2013-09-18 21:41:34
8.0
9.0
10.0
22.0
23.0
24.0
25.0
26.0
27.0
28.0
29.0
canary
16.0
17.0
18.0
19.0
20.0
21.0
22.0
23.0
24.0
nightly
✓6.0
5.1
12.0
15.0
next
✓6.0
✓6.0
4.2
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal 1..45 # tests 45 # pass 45 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal 1..45 # tests 45 # pass 45 # ok
TAP version 13 # Validator is a function ok 1 should be equal # Validator can validate objects ok 2 should be equivalent ok 3 should be equal ok 4 should be equivalent # Validator can validate multiple attributes ok 5 should be equal ok 6 should be equivalent # multiple validations per key ok 7 should be equivalent ok 8 should be equivalent ok 9 should be equal # using function instead of array in schema ok 10 should be equivalent ok 11 should be equal # can use custom function ok 12 should be equivalent ok 13 should be equal # message formatting is optional with placeholders ok 14 should be equivalent # truthy(message) ok 15 should be equivalent ok 16 should be equal # type(type, message) ok 17 should be equivalent ok 18 should be equal # range(n, m, message) ok 19 should be equivalent ok 20 should be equal ok 21 should be equivalent ok 22 should be equal ok 23 should be equal ok 24 should be equal ok 25 (unnamed assert) # isEmail(message) ok 26 should be equivalent ok 27 should be equal # isCreditCard(message) ok 28 should be equivalent ok 29 should be equal # min(n, message) ok 30 should be equivalent ok 31 should be equal ok 32 should be equivalent # max(m, message) ok 33 should be equivalent ok 34 should be equal ok 35 should be equivalent # size(n, message) ok 36 should be equivalent ok 37 should be equal # match(regex, message) ok 38 should be equivalent ok 39 should be equal # memberOf(whiteList, message) ok 40 should be equivalent ok 41 should be equal # list({ min, max, length, content }, message) ok 42 should be equivalent ok 43 should be equal # optional(validator) ok 44 should be equivalent ok 45 should be equal 1..45 # tests 45 # pass 45 # ok