Skip to content

Commit 4a68f39

Browse files
committed
address nit-pick 😉
1 parent e7f7d11 commit 4a68f39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/wait-for-element-to-be-removed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ test('requires an element to exist first', () => {
5757
return expect(
5858
waitForElementToBeRemoved(() => null),
5959
).rejects.toThrowErrorMatchingInlineSnapshot(
60-
`"The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist before waiting for removal."`,
60+
`"The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal."`,
6161
)
6262
})
6363

6464
test('requires an unempty array of elements to exist first', () => {
6565
return expect(
6666
waitForElementToBeRemoved(() => []),
6767
).rejects.toThrowErrorMatchingInlineSnapshot(
68-
`"The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist before waiting for removal."`,
68+
`"The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal."`,
6969
)
7070
})
7171

src/wait-for-element-to-be-removed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function waitForElementToBeRemoved(callback, options) {
1515
// As the name implies, waitForElementToBeRemoved should check `present` --> `removed`
1616
if (isRemoved(callback())) {
1717
throw new Error(
18-
'The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist before waiting for removal.',
18+
'The callback function which was passed did not return an element or non-empty array of elements. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.',
1919
)
2020
}
2121

0 commit comments

Comments
 (0)