static shouldBeSubset(context)
Equivalent to the 'subset' function. Validates that expected value is a subset (contained within) the actual value. This should work on any nested level object.
- context {Object} - A context object holding 3 main parameters: actual, expected, and message. Also holds configuration params.
- actual {Object} - The actual value for comparison (superset).
- expected {Object} - The expected value for comparison (subset).
- [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