Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for transformTransactions function #104

Closed
coderabbitai bot opened this issue Dec 2, 2024 · 2 comments
Closed

Add unit tests for transformTransactions function #104

coderabbitai bot opened this issue Dec 2, 2024 · 2 comments
Assignees

Comments

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 2, 2024

As per the discussion in PR #98 (#98), we need to add unit tests for the transformTransactions function in hooks/useQueries.ts to verify its correctness and robustness.

Reference comment: #98 (comment)

Requested by: @fmorency

Copy link
Contributor Author

coderabbitai bot commented Dec 2, 2024

Here are the unit tests for the `transformTransactions` function:

```typescript
// hooks/useQueries.test.ts

import { transformTransactions, HistoryTxType } from './useQueries';

describe('transformTransactions', () => {
// ... (unit tests code from above)
});

```

@fmorency
Copy link
Contributor

fmorency commented Dec 2, 2024

Will test using public facing methods.

@fmorency fmorency closed this as completed Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant