@@ -5,7 +5,7 @@ import { base } from 'viem/chains';
5
5
import { describe , expect , it , vi } from 'vitest' ;
6
6
import { useAccount } from 'wagmi' ;
7
7
import { useName } from '../../identity/hooks/useName' ;
8
- import { WalletDropdownBaseName } from './WalletDropdownBaseName ' ;
8
+ import { WalletDropdownBasename } from './WalletDropdownBasename ' ;
9
9
import { useWalletContext } from './WalletProvider' ;
10
10
11
11
vi . mock ( 'wagmi' , ( ) => ( {
@@ -20,7 +20,7 @@ vi.mock('./WalletProvider', () => ({
20
20
useWalletContext : vi . fn ( ) ,
21
21
} ) ) ;
22
22
23
- describe ( 'WalletDropdownBaseName ' , ( ) => {
23
+ describe ( 'WalletDropdownBasename ' , ( ) => {
24
24
it ( 'should render "Claim Basename" when no basename' , ( ) => {
25
25
( useAccount as vi . Mock < [ ] , Partial < GetAccountReturnType > > ) . mockReturnValue ( {
26
26
address : '0x1234' as `0x${string } `,
@@ -38,7 +38,7 @@ describe('WalletDropdownBaseName', () => {
38
38
error : null ,
39
39
} ) ;
40
40
41
- render ( < WalletDropdownBaseName /> ) ;
41
+ render ( < WalletDropdownBasename /> ) ;
42
42
expect ( screen . getByText ( 'Claim Basename' ) ) . toBeInTheDocument ( ) ;
43
43
expect ( screen . getByText ( 'NEW' ) ) . toBeInTheDocument ( ) ;
44
44
} ) ;
@@ -60,7 +60,7 @@ describe('WalletDropdownBaseName', () => {
60
60
error : null ,
61
61
} ) ;
62
62
63
- render ( < WalletDropdownBaseName /> ) ;
63
+ render ( < WalletDropdownBasename /> ) ;
64
64
expect ( screen . getByText ( 'Profile' ) ) . toBeInTheDocument ( ) ;
65
65
expect ( screen . queryByText ( 'NEW' ) ) . not . toBeInTheDocument ( ) ;
66
66
} ) ;
@@ -82,7 +82,7 @@ describe('WalletDropdownBaseName', () => {
82
82
error : null ,
83
83
} ) ;
84
84
85
- render ( < WalletDropdownBaseName /> ) ;
85
+ render ( < WalletDropdownBasename /> ) ;
86
86
expect ( screen . getByTestId ( 'ockSpinner' ) ) . toBeInTheDocument ( ) ;
87
87
expect ( screen . queryByText ( 'Claim Basename' ) ) . not . toBeInTheDocument ( ) ;
88
88
expect ( screen . queryByText ( 'Profile' ) ) . not . toBeInTheDocument ( ) ;
@@ -98,7 +98,7 @@ describe('WalletDropdownBaseName', () => {
98
98
chain : base ,
99
99
} ) ;
100
100
101
- const { container } = render ( < WalletDropdownBaseName /> ) ;
101
+ const { container } = render ( < WalletDropdownBasename /> ) ;
102
102
expect ( container . firstChild ) . toBeNull ( ) ;
103
103
} ) ;
104
104
} ) ;
0 commit comments