static equal(actual, expected, message, context)

Does a deep comparison of actual and expected using Chai.js (Deep Equals. If the comparison fails, it will throw with a pretty printed version of the expected and actual params to the stacktrace. This functionality is provided by the Errr module. If an error message is provided, it will be used in the error message if the comparison fails.

  • actual {Object} - The actual value for comparison.
  • expected {Object} - The expected value for comparison.
  • [message] {String} - The message added to the Errr if the comparison fails.
  • [context] {Object} - Holds different configuration options.
  • [context.noDebug] {Boolean} - If set to true, Maddox will not append the actual and expected in the stacktrace. Defaults to false.
  • returns nothing