Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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