static subset(actual, expected, message, context)

Validates that expected value is a subset (contained within) the actual value. This should work on any nested level object.

  • actual {Object} - The actual value for comparison (superset).
  • expected {Object} - The expected value for comparison (subset).
  • [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 debug info in the stacktrace. Defaults to false.
  • returns nothing