From dfcefa2e0262002b4eb0c2e382ea750e7f582347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Labrut?= Date: Tue, 23 Nov 2021 14:55:58 +0100 Subject: [PATCH] fix: wrong deprecate error message (#422) --- src/to-have-description.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/to-have-description.js b/src/to-have-description.js index bc9138ab..28a21347 100644 --- a/src/to-have-description.js +++ b/src/to-have-description.js @@ -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)