()
| 78 | |
| 79 | // Example: Testing with mock client |
| 80 | async function exampleTesting() { |
| 81 | const mockClient = new MockMoralisClient(); |
| 82 | |
| 83 | const result = await mockClient.fetchTokens(1, '0x123...', []); |
| 84 | |
| 85 | console.assert(result.erc20s.length === 1, 'Should return 1 token'); |
| 86 | console.assert( |
| 87 | result.erc20s[0].contract_ticker_symbol === 'USDC', |
| 88 | 'Should be USDC', |
| 89 | ); |
| 90 | |
| 91 | console.log('Mock test passed!'); |
| 92 | |
| 93 | return result; |
| 94 | } |
| 95 | |
| 96 | // Export examples |
| 97 | export { exampleUsage, exampleTesting, MockMoralisClient }; |
nothing calls this directly
no test coverage detected