Class: Same

Same

Represents an argument with a custom equality comparison. Used when === does not suffice.

Constructor

new Same(value, matcher)

Creates a new Same

Parameters:
Name Type Description
value object

Expected argument.

matcher function

Function to do equality comparison with actual argument.

Source:

Members

matcher :function

Function to do equality comparison with actual argument.

Type:
  • function
Source:

value :object

The expected argument

Type:
  • object
Source: