Go to repository

Function toHaveProperty

Answer if the actual element has a property with the given name.

Parameters

  • actual: unknown
  • propertyName: string

Returns boolean