We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d0807 commit 12e4accCopy full SHA for 12e4acc
packages/components/src/components/Address/Address.test.tsx
@@ -5,7 +5,15 @@ import { Address } from './Address';
5
6
describe('Address', () => {
7
it('renders without throwing', () => {
8
- const { container } = render(<Address value='taylorswift.eth' />);
+ const { container } = render(<Address value='taylorswift.eth' shortened={false} />);
9
expect(container).toBeInTheDocument();
10
});
11
12
+
13
+describe('Shortened Address', () => {
14
+ it('check the length of the address', () => {
15
+ const { container } = render(<Address value='0x00000000000000' shortened />);
16
+ const addressInput = container.querySelector('input') as HTMLInputElement;
17
+ expect(addressInput).toHaveValue('0x00...0000');
18
+ });
19
+});
0 commit comments