Skip to content

Commit 911ff6e

Browse files
committed
Fix linting issues
1 parent ca22eca commit 911ff6e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/__tests__/validate-plugin.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ test('can validate using plugin', async () => {
1313

1414
await fireEvent.touch(emailInput)
1515

16-
await findByText('This field is required')
16+
expect(await findByText('This field is required')).toBeInTheDocument()
1717

1818
await fireEvent.update(emailInput, 'an invalid email')
1919
await fireEvent.blur(emailInput)
2020

21-
await findByText('This field must be a valid email')
21+
expect(
22+
await findByText('This field must be a valid email'),
23+
).toBeInTheDocument()
2224
})

0 commit comments

Comments
 (0)