Constructor
new AreEqual(testName, expected, actual, compareropt, thisArgopt)
- Description:
- Compares two values using `===` or a custom comparer function. Values can be passed directly or as functions for deferred evaluation.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
testName |
string | Name of the test. | |
expected |
any | function | Expected value or function returning it. | |
actual |
any | function | Actual value or function returning it. | |
comparer |
function |
<optional> |
Optional custom comparison function ((expected, actual) => boolean). |
thisArg |
any |
<optional> |
Optional context for invoking deferred or comparison functions. |