IsDefined

IsDefined

IsDefined A test that asserts the actual value is **not** `undefined`. Inherits from Assert. Example: ```js isDefined("Value should be defined", myValue); ```

Constructor

new IsDefined(testName, actual, thisArgopt)

Description:
  • Constructs a defined-check assertion.
Source:
Parameters:
Name Type Attributes Description
testName string Descriptive name of the test.
actual any | function Value to evaluate or function to call.
thisArg any <optional>
Optional context for evaluation.

Classes

IsDefined