Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Dec 27, 2024
1 parent 56b0320 commit 24d7a5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/ui-components/src/__tests__/InputToken.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { render, fireEvent } from '@testing-library/svelte';
import InputToken from '../lib/components/input/InputToken.svelte';


describe('InputToken', () => {
it('renders with initial values', () => {
const address = '0xc0D477556c25C9d67E1f57245C7453DA776B51cf';
Expand Down Expand Up @@ -31,7 +30,9 @@ describe('InputToken', () => {
const { getByTestId, queryByText } = render(InputToken, { props: { address, decimals } });

const addressInput = getByTestId('token-address').querySelector('input') as HTMLInputElement;
await fireEvent.input(addressInput, { target: { value: '0xc0D477556c25C9d67E1f57245C7453DA776B51cf' } });
await fireEvent.input(addressInput, {
target: { value: '0xc0D477556c25C9d67E1f57245C7453DA776B51cf' }
});

expect(queryByText('Invalid Address')).toBeNull();
});
Expand Down

0 comments on commit 24d7a5a

Please sign in to comment.