Skip to content

test: unit test for the solana.ts - #19

Merged
Shreyassp002 merged 2 commits into
HoomanBuilds:mainfrom
Shreyassp002:main
Apr 3, 2026
Merged

Shreyassp002 merged 2 commits into
HoomanBuilds:mainfrom
Shreyassp002:main

Conversation

@Shreyassp002

Copy link
Copy Markdown
Member

Summary

Adds unit tests for the pure utility functions in src/lib/solana.ts to improve test coverage without unnecessary mocking.

Changes

  • Added src/lib/__tests__/solana.test.ts
  • Tests isValidSolanaAddress() against valid keys, weak strings, EVM addresses, and invalid base58 strings.
  • Tests isSolNative() against the native mint, system program, and SPL token addresses.

@vercel

vercel Bot commented Apr 3, 2026

Copy link
Copy Markdown

@Shreyassp002 is attempting to deploy a commit to the Shreyas' projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Apr 3, 2026 •

Copy link
Copy Markdown

⚡ Flash Review

Metric Value
Files Reviewed 0
Risk Level 🟢 Low
Issues Found 🚨 0 Critical · ⚠️ 0 Warnings · 💡 0 Suggestions

See inline comments for details.


⚡ Powered by Flash Review

⚠️ Note: 2 file(s) could not be reviewed due to API errors.

@vercel

vercel Bot commented Apr 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flash-protocol Ready Ready Preview, Comment Apr 3, 2026 0:34am

@Shreyassp002
Shreyassp002 merged commit e565024 into HoomanBuilds:main Apr 3, 2026
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant