Test.Mock.Value Class
Creates a new value matcher.
Constructor
Test.Mock.Value
(
-
method
-
originalArgs
-
message
)
Parameters:
-
method
Function
The function to call on the value.
-
originalArgs
Array
(Optional) Array of arguments to pass to the method.
-
message
String
(Optional) Message to display in case of failure.
Properties
Any
Function
static
Predefined matcher to match any value.
Boolean
Function
static
Predefined matcher to match boolean values.
Function
Function
static
Predefined matcher to match function values.
Number
Function
static
Predefined matcher to match number values.
Object
Function
static
Predefined matcher to match object values.
String
Function
static
Predefined matcher to match string values.