Skip to content

Commit

Permalink
fix: wrong deprecate error message (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
MLKiiwy authored Nov 23, 2021
1 parent 4cb606c commit dfcefa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/to-have-description.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {checkHtmlElement, getMessage, normalize, deprecate} from './utils'
// See algoritm: https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description
export function toHaveDescription(htmlElement, checkWith) {
deprecate(
'toBeInTheDOM',
'Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.',
'toHaveDescription',
'Please use toHaveAccessibleDescription.',
)

checkHtmlElement(htmlElement, toHaveDescription, this)
Expand Down

0 comments on commit dfcefa2

Please sign in to comment.