Namespace: getMessage

getMessage

.getMessage(object, message, negateMessage)

Construct the error message based on flags and template tags. Template tags will return a stringified inspection of the object referenced.

Message template tags:

  • #{this} current asserted object
  • #{act} actual value
  • #{exp} expected value
Source: