Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gin-lsl committed Feb 24, 2025
1 parent d23b311 commit d698fad
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/tron/src/provider/__tests__/basic.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { render } from '@testing-library/react';
import { describe, expect, it } from 'vitest';

import { TronWeb3ConfigProvider } from '../index';

describe('TronWeb3ConfigProvider basic cases', () => {
it('mount correctly', () => {
const App = () => (
<TronWeb3ConfigProvider>
<div className="content">test</div>
</TronWeb3ConfigProvider>
);

const { baseElement } = render(<App />);
expect(baseElement.querySelector('.content')?.textContent).toBe('test');
});
});

0 comments on commit d698fad

Please sign in to comment.