@cratis/arc 19.0.0 → 19.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/commands/Command.ts +9 -1
  2. package/commands/for_Command/when_executing/and_command_route_not_found.ts +2 -2
  3. package/commands/for_Command/when_executing/and_fetch_throws_exception.ts +3 -3
  4. package/commands/for_Command/when_executing/with_client_validation_failing.ts +5 -5
  5. package/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.ts +5 -5
  6. package/commands/for_Command/when_executing/with_client_validation_passing.ts +1 -1
  7. package/commands/for_Command/when_executing/with_command_properties.ts +1 -1
  8. package/commands/for_Command/when_executing/with_custom_http_headers.ts +2 -2
  9. package/commands/for_Command/when_executing/with_microservice_header.ts +1 -1
  10. package/commands/for_Command/when_executing/with_missing_required_property.ts +7 -7
  11. package/commands/for_Command/when_executing/with_origin_and_api_base_path.ts +1 -1
  12. package/commands/for_Command/when_executing/with_route_parameters.ts +2 -2
  13. package/commands/for_Command/when_executing/with_successful_response.ts +5 -5
  14. package/commands/for_Command/when_validating/and_fetch_throws_exception.ts +3 -3
  15. package/commands/for_Command/when_validating/and_validation_endpoint_not_found.ts +2 -2
  16. package/commands/for_Command/when_validating/does_not_update_initial_values.ts +1 -1
  17. package/commands/for_Command/when_validating/with_client_validation_failure.ts +4 -4
  18. package/commands/for_Command/when_validating/with_client_validation_passing.ts +3 -3
  19. package/commands/for_Command/when_validating/with_required_property_missing.ts +4 -4
  20. package/commands/for_Command/when_validating/with_route_parameters.ts +61 -0
  21. package/commands/for_Command/when_validating/with_successful_response.ts +3 -3
  22. package/commands/for_Command/when_validating/with_validation_errors.ts +3 -3
  23. package/dist/cjs/commands/Command.d.ts.map +1 -1
  24. package/dist/cjs/commands/Command.js +7 -1
  25. package/dist/cjs/commands/Command.js.map +1 -1
  26. package/dist/cjs/commands/for_Command/when_validating/with_route_parameters.d.ts +2 -0
  27. package/dist/cjs/commands/for_Command/when_validating/with_route_parameters.d.ts.map +1 -0
  28. package/dist/esm/commands/Command.d.ts.map +1 -1
  29. package/dist/esm/commands/Command.js +7 -1
  30. package/dist/esm/commands/Command.js.map +1 -1
  31. package/dist/esm/commands/for_Command/when_executing/and_command_route_not_found.js +2 -2
  32. package/dist/esm/commands/for_Command/when_executing/and_fetch_throws_exception.js +3 -3
  33. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failing.js +5 -5
  34. package/dist/esm/commands/for_Command/when_executing/with_client_validation_failure_and_custom_message.js +5 -5
  35. package/dist/esm/commands/for_Command/when_executing/with_client_validation_passing.js +1 -1
  36. package/dist/esm/commands/for_Command/when_executing/with_command_properties.js +1 -1
  37. package/dist/esm/commands/for_Command/when_executing/with_custom_http_headers.js +2 -2
  38. package/dist/esm/commands/for_Command/when_executing/with_microservice_header.js +1 -1
  39. package/dist/esm/commands/for_Command/when_executing/with_missing_required_property.js +7 -7
  40. package/dist/esm/commands/for_Command/when_executing/with_origin_and_api_base_path.js +1 -1
  41. package/dist/esm/commands/for_Command/when_executing/with_route_parameters.js +2 -2
  42. package/dist/esm/commands/for_Command/when_executing/with_successful_response.js +5 -5
  43. package/dist/esm/commands/for_Command/when_validating/and_fetch_throws_exception.js +3 -3
  44. package/dist/esm/commands/for_Command/when_validating/and_validation_endpoint_not_found.js +2 -2
  45. package/dist/esm/commands/for_Command/when_validating/does_not_update_initial_values.js +1 -1
  46. package/dist/esm/commands/for_Command/when_validating/with_client_validation_failure.js +4 -4
  47. package/dist/esm/commands/for_Command/when_validating/with_client_validation_passing.js +3 -3
  48. package/dist/esm/commands/for_Command/when_validating/with_required_property_missing.js +4 -4
  49. package/dist/esm/commands/for_Command/when_validating/with_route_parameters.d.ts +2 -0
  50. package/dist/esm/commands/for_Command/when_validating/with_route_parameters.d.ts.map +1 -0
  51. package/dist/esm/commands/for_Command/when_validating/with_route_parameters.js +51 -0
  52. package/dist/esm/commands/for_Command/when_validating/with_route_parameters.js.map +1 -0
  53. package/dist/esm/commands/for_Command/when_validating/with_successful_response.js +3 -3
  54. package/dist/esm/commands/for_Command/when_validating/with_validation_errors.js +3 -3
  55. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.js +3 -3
  56. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_empty_origin.js +2 -2
  57. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.js +4 -4
  58. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_relative_route.js +3 -3
  59. package/dist/esm/for_UrlHelpers/when_creating_url_from/with_valid_parameters.js +3 -3
  60. package/dist/esm/for_UrlHelpers/when_creating_url_from/without_document_object.js +1 -1
  61. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.js +1 -1
  62. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.js +1 -1
  63. package/dist/esm/identity/for_IdentityProvider/when_refreshing/with_origin_set.js +3 -3
  64. package/dist/esm/identity/for_IdentityProvider/when_refreshing/without_api_base_path.js +1 -1
  65. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failing.js +4 -4
  66. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.js +5 -5
  67. package/dist/esm/queries/for_QueryFor/when_performing/with_client_validation_passing.js +1 -1
  68. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  69. package/dist/esm/validation/for_Validator/when_defining_multiple_rules_for_same_property.js +2 -2
  70. package/dist/esm/validation/for_Validator/when_using_custom_error_message.js +1 -1
  71. package/dist/esm/validation/for_Validator/when_validating/with_all_rules_passing.js +2 -2
  72. package/dist/esm/validation/for_Validator/when_validating/with_multiple_rules_failing.js +3 -3
  73. package/dist/esm/validation/for_Validator/when_validating/with_one_rule_failing.js +3 -3
  74. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_empty_string.js +1 -1
  75. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_invalid_email.js +1 -1
  76. package/dist/esm/validation/rules/for_EmailRule/when_validating/with_valid_email.js +1 -1
  77. package/dist/esm/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.js +1 -1
  78. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.js +1 -1
  79. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.js +1 -1
  80. package/dist/esm/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.js +2 -2
  81. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.js +1 -1
  82. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.js +1 -1
  83. package/dist/esm/validation/rules/for_LengthRule/when_validating/with_string_within_range.js +1 -1
  84. package/dist/esm/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.js +1 -1
  85. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.js +1 -1
  86. package/dist/esm/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.js +2 -2
  87. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.js +1 -1
  88. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.js +1 -1
  89. package/dist/esm/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.js +2 -2
  90. package/dist/esm/validation/rules/for_NotEmptyRule/when_setting_custom_message.js +1 -1
  91. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.js +1 -1
  92. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.js +1 -1
  93. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.js +1 -1
  94. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_null_value.js +4 -4
  95. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.js +2 -2
  96. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.js +1 -1
  97. package/dist/esm/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.js +1 -1
  98. package/for_UrlHelpers/when_creating_url_from/with_base_path_ending_with_slash.ts +3 -3
  99. package/for_UrlHelpers/when_creating_url_from/with_empty_origin.ts +2 -2
  100. package/for_UrlHelpers/when_creating_url_from/with_null_or_undefined_origin.ts +4 -4
  101. package/for_UrlHelpers/when_creating_url_from/with_relative_route.ts +3 -3
  102. package/for_UrlHelpers/when_creating_url_from/with_valid_parameters.ts +3 -3
  103. package/for_UrlHelpers/when_creating_url_from/without_document_object.ts +1 -1
  104. package/identity/for_IdentityProvider/when_refreshing/with_api_base_path_set.ts +1 -1
  105. package/identity/for_IdentityProvider/when_refreshing/with_globals_api_base_path.ts +1 -1
  106. package/identity/for_IdentityProvider/when_refreshing/with_origin_set.ts +3 -3
  107. package/identity/for_IdentityProvider/when_refreshing/without_api_base_path.ts +1 -1
  108. package/package.json +2 -2
  109. package/queries/for_QueryFor/when_performing/with_client_validation_failing.ts +4 -4
  110. package/queries/for_QueryFor/when_performing/with_client_validation_failure_and_custom_message.ts +5 -5
  111. package/queries/for_QueryFor/when_performing/with_client_validation_passing.ts +1 -1
  112. package/validation/for_Validator/when_defining_multiple_rules_for_same_property.ts +2 -2
  113. package/validation/for_Validator/when_using_custom_error_message.ts +1 -1
  114. package/validation/for_Validator/when_validating/with_all_rules_passing.ts +2 -2
  115. package/validation/for_Validator/when_validating/with_multiple_rules_failing.ts +3 -3
  116. package/validation/for_Validator/when_validating/with_one_rule_failing.ts +3 -3
  117. package/validation/rules/for_EmailRule/when_validating/with_empty_string.ts +1 -1
  118. package/validation/rules/for_EmailRule/when_validating/with_invalid_email.ts +1 -1
  119. package/validation/rules/for_EmailRule/when_validating/with_valid_email.ts +1 -1
  120. package/validation/rules/for_GreaterThanOrEqualRule/when_validating/with_value_equal_to_threshold.ts +1 -1
  121. package/validation/rules/for_GreaterThanRule/when_validating/with_value_equal_to_threshold.ts +1 -1
  122. package/validation/rules/for_GreaterThanRule/when_validating/with_value_greater_than_threshold.ts +1 -1
  123. package/validation/rules/for_GreaterThanRule/when_validating/with_value_less_than_threshold.ts +2 -2
  124. package/validation/rules/for_LengthRule/when_validating/with_string_longer_than_maximum.ts +1 -1
  125. package/validation/rules/for_LengthRule/when_validating/with_string_shorter_than_minimum.ts +1 -1
  126. package/validation/rules/for_LengthRule/when_validating/with_string_within_range.ts +1 -1
  127. package/validation/rules/for_LessThanRule/when_validating/with_value_less_than_threshold.ts +1 -1
  128. package/validation/rules/for_MaxLengthRule/when_validating/with_string_equal_to_maximum.ts +1 -1
  129. package/validation/rules/for_MaxLengthRule/when_validating/with_string_longer_than_maximum.ts +2 -2
  130. package/validation/rules/for_MinLengthRule/when_validating/with_string_equal_to_minimum.ts +1 -1
  131. package/validation/rules/for_MinLengthRule/when_validating/with_string_longer_than_minimum.ts +1 -1
  132. package/validation/rules/for_MinLengthRule/when_validating/with_string_shorter_than_minimum.ts +2 -2
  133. package/validation/rules/for_NotEmptyRule/when_setting_custom_message.ts +1 -1
  134. package/validation/rules/for_NotEmptyRule/when_validating/with_empty_array.ts +1 -1
  135. package/validation/rules/for_NotEmptyRule/when_validating/with_empty_string.ts +1 -1
  136. package/validation/rules/for_NotEmptyRule/when_validating/with_non_empty_array.ts +1 -1
  137. package/validation/rules/for_NotEmptyRule/when_validating/with_null_value.ts +4 -4
  138. package/validation/rules/for_NotEmptyRule/when_validating/with_undefined_value.ts +2 -2
  139. package/validation/rules/for_NotEmptyRule/when_validating/with_valid_string.ts +1 -1
  140. package/validation/rules/for_NotEmptyRule/when_validating/with_whitespace_string.ts +1 -1
@@ -24,15 +24,15 @@ describe("when validating with multiple rules failing", () => {
24
24
  results = validator.validate(instance);
25
25
  });
26
26
 
27
- it("should_return_two_validation_errors", () => {
27
+ it("should return two validation errors", () => {
28
28
  results.should.have.lengthOf(2);
29
29
  });
30
30
 
31
- it("should_have_error_for_name_property", () => {
31
+ it("should have error for name property", () => {
32
32
  results.some(r => r.members.includes('name')).should.be.true;
33
33
  });
34
34
 
35
- it("should_have_error_for_age_property", () => {
35
+ it("should have error for age property", () => {
36
36
  results.some(r => r.members.includes('age')).should.be.true;
37
37
  });
38
38
  });
@@ -24,15 +24,15 @@ describe("when validating with one rule failing", () => {
24
24
  results = validator.validate(instance);
25
25
  });
26
26
 
27
- it("should_return_one_validation_error", () => {
27
+ it("should return one validation error", () => {
28
28
  results.should.have.lengthOf(1);
29
29
  });
30
30
 
31
- it("should_indicate_instance_is_not_valid", () => {
31
+ it("should indicate instance is not valid", () => {
32
32
  validator.isValidFor(instance).should.be.false;
33
33
  });
34
34
 
35
- it("should_have_error_for_name_property", () => {
35
+ it("should have error for name property", () => {
36
36
  results[0].members.should.include('name');
37
37
  });
38
38
  });
@@ -19,7 +19,7 @@ describe("when validating with empty string", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with invalid email", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with valid email", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with value equal to threshold", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with value equal to threshold", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with value greater than threshold", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,11 +19,11 @@ describe("when validating with value less than threshold", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
 
26
- it("should_include_threshold_in_message", () => {
26
+ it("should include threshold in message", () => {
27
27
  results[0].message.should.include('18');
28
28
  });
29
29
  });
@@ -19,7 +19,7 @@ describe("when validating with string longer than maximum", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with string shorter than minimum", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with string within range", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with value less than threshold", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with string equal to maximum", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,11 +19,11 @@ describe("when validating with string longer than maximum", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
 
26
- it("should_include_maximum_length_in_message", () => {
26
+ it("should include maximum length in message", () => {
27
27
  results[0].message.should.include('5');
28
28
  });
29
29
  });
@@ -19,7 +19,7 @@ describe("when validating with string equal to minimum", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with string longer than minimum", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,11 +19,11 @@ describe("when validating with string shorter than minimum", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
 
26
- it("should_include_minimum_length_in_message", () => {
26
+ it("should include minimum length in message", () => {
27
27
  results[0].message.should.include('5');
28
28
  });
29
29
  });
@@ -21,7 +21,7 @@ describe("when setting custom message", () => {
21
21
  results = rule.validate(instance, 'value');
22
22
  });
23
23
 
24
- it("should_use_custom_message", () => {
24
+ it("should use custom message", () => {
25
25
  results[0].message.should.equal(customMessage);
26
26
  });
27
27
  });
@@ -19,7 +19,7 @@ describe("when validating with empty array", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with empty string", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with non empty array", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -20,19 +20,19 @@ describe("when validating with null value", () => {
20
20
  results = rule.validate(instance, 'value');
21
21
  });
22
22
 
23
- it("should_return_one_validation_error", () => {
23
+ it("should return one validation error", () => {
24
24
  results.should.have.lengthOf(1);
25
25
  });
26
26
 
27
- it("should_have_error_severity", () => {
27
+ it("should have error severity", () => {
28
28
  results[0].severity.should.equal(ValidationResultSeverity.Error);
29
29
  });
30
30
 
31
- it("should_have_property_name_in_message", () => {
31
+ it("should have property name in message", () => {
32
32
  results[0].message.should.include('value');
33
33
  });
34
34
 
35
- it("should_include_property_in_members", () => {
35
+ it("should include property in members", () => {
36
36
  results[0].members.should.include('value');
37
37
  });
38
38
  });
@@ -20,11 +20,11 @@ describe("when validating with undefined value", () => {
20
20
  results = rule.validate(instance, 'value');
21
21
  });
22
22
 
23
- it("should_return_one_validation_error", () => {
23
+ it("should return one validation error", () => {
24
24
  results.should.have.lengthOf(1);
25
25
  });
26
26
 
27
- it("should_have_error_severity", () => {
27
+ it("should have error severity", () => {
28
28
  results[0].severity.should.equal(ValidationResultSeverity.Error);
29
29
  });
30
30
  });
@@ -19,7 +19,7 @@ describe("when validating with valid string", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_no_validation_errors", () => {
22
+ it("should return no validation errors", () => {
23
23
  results.should.be.empty;
24
24
  });
25
25
  });
@@ -19,7 +19,7 @@ describe("when validating with whitespace string", () => {
19
19
  results = rule.validate(instance, 'value');
20
20
  });
21
21
 
22
- it("should_return_one_validation_error", () => {
22
+ it("should return one validation error", () => {
23
23
  results.should.have.lengthOf(1);
24
24
  });
25
25
  });