diff --git a/src/__tests__/wait-for-dom-change.js b/src/__tests__/wait-for-dom-change.js index 920a679f..c843bb63 100644 --- a/src/__tests__/wait-for-dom-change.js +++ b/src/__tests__/wait-for-dom-change.js @@ -38,7 +38,7 @@ test('waits for the dom to change in the document', async () => { expect(console.warn.mock.calls).toMatchInlineSnapshot(` Array [ Array [ - "\`waitForDomChange\` has been deprecated. Use \`wait\` instead: https://testing-library.com/docs/dom-testing-library/api-async#waitfor.", + "\`waitForDomChange\` has been deprecated. Use \`waitFor\` instead: https://testing-library.com/docs/dom-testing-library/api-async#waitfor.", ], ] `) diff --git a/src/wait-for-dom-change.js b/src/wait-for-dom-change.js index 1766937d..1344db9d 100644 --- a/src/wait-for-dom-change.js +++ b/src/wait-for-dom-change.js @@ -26,7 +26,7 @@ function waitForDomChange({ if (!hasWarned) { hasWarned = true console.warn( - `\`waitForDomChange\` has been deprecated. Use \`wait\` instead: https://testing-library.com/docs/dom-testing-library/api-async#waitfor.`, + `\`waitForDomChange\` has been deprecated. Use \`waitFor\` instead: https://testing-library.com/docs/dom-testing-library/api-async#waitfor.`, ) } return new Promise((resolve, reject) => {