← Back to index
function assertObjectMatch

Make an assertion that actual object is a subset of expected object, deeply. If not, then throw.

Parameters

🔗
actual: Record<PropertyKey, any>
🔗
expected: Record<PropertyKey, unknown>
🔗
msg: string