Skip to content

Commit

Permalink
fix: corrects deprecation warning for waitForDomChange (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
egilsster authored Mar 13, 2020
1 parent 98e5bb3 commit 9768a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/wait-for-dom-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
],
]
`)
Expand Down
2 changes: 1 addition & 1 deletion src/wait-for-dom-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 9768a2b

Please sign in to comment.