Module Support/ConditionsForTesting

Custom Conditions designed for testing validation where the Condition has a predictable behavior.

  • AlwaysMatchesCondition: Always returns Match
  • NeverMatchesCondition: Always returns NoMatch
  • IsUndeterminedCondition: Always returns Undetermined
  • ThrowsExceptionCondition: Always throws an Error
  • ThrowsSevereExceptionCondition: Always throws a CodingError
  • UserSuppliedResultCondition: Returns a result supplied in the config
  • UserSuppliedResultConditionWithDuringEdit: Returns a result supplied in the config and implements IEvaluateConditionDuringEdits
  • EvaluatesAsPromiseCondition: Returns a Promise that resolves to Match
  • DisposableCondition: Returns a result supplied in the config and implements IDisposable

Add to an existing ValidationService by calling registerTestingOnlyConditions(services.conditionsFactory).

Index

Classes

Interfaces

Variables

Functions

Generated using TypeDoc v0.25.12