static shouldEqual(context)
Synonymous with shouldBeEqual, but with different definition. 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.
- context {Object} - A context object holding 3 main parameters: actual, expected, and message. Also holds configuration params.
- context.actual {Object} - The actual value for comparison.
- context.expected {Object} - The expected value for comparison.
- [context.message] {String} - The message added to the Errr if the comparison fails.
- [context.noDebug] {Boolean} - If set to true, Maddox will not append the actual and expected in the stacktrace. Defaults to false.
- returns nothing