We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cb606c commit dfcefa2Copy full SHA for dfcefa2
src/to-have-description.js
@@ -3,8 +3,8 @@ import {checkHtmlElement, getMessage, normalize, deprecate} from './utils'
3
// See algoritm: https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description
4
export function toHaveDescription(htmlElement, checkWith) {
5
deprecate(
6
- 'toBeInTheDOM',
7
- 'Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.',
+ 'toHaveDescription',
+ 'Please use toHaveAccessibleDescription.',
8
)
9
10
checkHtmlElement(htmlElement, toHaveDescription, this)
0 commit comments