vest 5.1.2 → 5.1.4

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.
@@ -130,7 +130,7 @@ function optional(optionals) {
130
130
  }
131
131
  }
132
132
  }
133
- function useIsOptionalFiedApplied(fieldName) {
133
+ function useIsOptionalFieldApplied(fieldName) {
134
134
  var _a, _b;
135
135
  if (!fieldName) {
136
136
  return false;
@@ -936,7 +936,7 @@ class SummaryFailure {
936
936
 
937
937
  function useShouldAddValidProperty(fieldName) {
938
938
  // Is the field optional, and the optional condition is applied
939
- if (useIsOptionalFiedApplied(fieldName)) {
939
+ if (useIsOptionalFieldApplied(fieldName)) {
940
940
  return true;
941
941
  }
942
942
  // Are there no tests?
@@ -955,7 +955,7 @@ function useShouldAddValidProperty(fieldName) {
955
955
  return useNoMissingTests(fieldName);
956
956
  }
957
957
  function useShouldAddValidPropertyInGroup(groupName, fieldName) {
958
- if (useIsOptionalFiedApplied(fieldName)) {
958
+ if (useIsOptionalFieldApplied(fieldName)) {
959
959
  return true;
960
960
  }
961
961
  if (hasGroupFailuresByTestObjects(Severity.ERRORS, groupName, fieldName)) {
@@ -973,7 +973,7 @@ function useHasNonOptionalIncomplete(fieldName) {
973
973
  if (nonMatchingFieldName(VestTest.getData(testObject), fieldName)) {
974
974
  return false;
975
975
  }
976
- return !useIsOptionalFiedApplied(fieldName);
976
+ return !useIsOptionalFieldApplied(fieldName);
977
977
  });
978
978
  }
979
979
  // Do the given group/field have any pending tests that are not optional?
@@ -985,7 +985,7 @@ function useHasNonOptionalIncompleteByGroup(groupName, fieldName) {
985
985
  if (nonMatchingFieldName(VestTest.getData(testObject), fieldName)) {
986
986
  return false;
987
987
  }
988
- return !useIsOptionalFiedApplied(fieldName);
988
+ return !useIsOptionalFieldApplied(fieldName);
989
989
  });
990
990
  }
991
991
  // Did all of the tests for the provided field run/omit?
@@ -1011,7 +1011,7 @@ function useNoMissingTestsLogic(testObject, fieldName) {
1011
1011
  /**
1012
1012
  * The reason we're checking for the optional field here and not in "omitOptionalFields"
1013
1013
  * is because that unlike the bool/function check we do there, here it only depends on
1014
- * whether the field was tested alredy or not.
1014
+ * whether the field was tested already or not.
1015
1015
  *
1016
1016
  * We qualify the test as not missing only if it was already run, if it is omitted,
1017
1017
  * or if it is marked as optional, even if the optional check did not apply yet -
@@ -1312,7 +1312,7 @@ function useVerifyTestRun(testObject, collisionResult = testObject) {
1312
1312
  return testObject;
1313
1313
  }
1314
1314
  function useShouldOmit(fieldName) {
1315
- return useWithinActiveOmitWhen() || useIsOptionalFiedApplied(fieldName);
1315
+ return useWithinActiveOmitWhen() || useIsOptionalFieldApplied(fieldName);
1316
1316
  }
1317
1317
  function skipTestAndReturn(testNode) {
1318
1318
  VestTest.skip(testNode);