Skip to content

Commit dfcefa2

Browse files
authoredNov 23, 2021
fix: wrong deprecate error message (#422)
1 parent 4cb606c commit dfcefa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/to-have-description.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {checkHtmlElement, getMessage, normalize, deprecate} from './utils'
33
// See algoritm: https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description
44
export function toHaveDescription(htmlElement, checkWith) {
55
deprecate(
6-
'toBeInTheDOM',
7-
'Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.',
6+
'toHaveDescription',
7+
'Please use toHaveAccessibleDescription.',
88
)
99

1010
checkHtmlElement(htmlElement, toHaveDescription, this)

0 commit comments

Comments
 (0)
Please sign in to comment.