Skip to content

Commit

Permalink
Chore: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 30, 2023
1 parent f00bf3d commit 4492a6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/common/AddressInput/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ describe('AddressInput tests', () => {

const { input } = setup(`${mockChain.shortName}:${TEST_ADDRESS_A}`)

act(() => {
await act(() => {
fireEvent.change(input, { target: { value: `${mockChain.shortName}:${TEST_ADDRESS_B}` } })
return Promise.resolve()
})

await waitFor(() => expect(input.previousElementSibling?.textContent).toBe(''))
Expand Down

0 comments on commit 4492a6a

Please sign in to comment.