The ObjectAssert object provides functions to test JavaScript objects for a variety of cases.
areEqualexpected
actual
message
Asserts that an object has all of the same properties and property values as the other.
hasKeypropertyName
object
message
Asserts that an object has a property with the given name.
hasKeysproperties
object
message
Asserts that an object has all properties of a reference object.
inheritsKeypropertyName
object
message
Asserts that a property with the given name exists on an object's prototype.
inheritsKeysproperties
object
message
Asserts that all properties exist on an object prototype.
ownsKeypropertyName
object
message
Asserts that a property with the given name exists on an object instance (not on its prototype).
ownsKeysproperties
object
message
Asserts that all properties exist on an object instance (not on its prototype).
ownsNoKeysobject
message
Asserts that an object owns no properties.
ownsOrInheritsKeypropertyName
object
message
Asserts that an object has a property with the given name.
ownsOrInheritsKeysproperties
object
message
Asserts that an object has all properties of a reference object.