Skip to content

test(stellar): cover normalizeStellarAddress edge cases#346

Open
webmirroring wants to merge 1 commit into
Talenttrust:mainfrom
webmirroring:test/normalize-stellar-address-309
Open

test(stellar): cover normalizeStellarAddress edge cases#346
webmirroring wants to merge 1 commit into
Talenttrust:mainfrom
webmirroring:test/normalize-stellar-address-309

Conversation

@webmirroring

Copy link
Copy Markdown

Summary

  • add dedicated normalization coverage for whitespace trimming, case conversion, blank values, and non-string inputs
  • assert that isValidStellarAddress accepts a lowercase, whitespace-padded valid G-address via normalization
  • keep the change scoped to tests only

Closes #309.

Validation

  • pnpm exec jest src/lib/__tests__/stellarAddress.test.ts --runInBand
  • pnpm run lint
  • pnpm test --runInBand
  • ./node_modules/.bin/next build

Notes:

  • Full Jest passed: 55 suites, 925 tests passing, 5 skipped.
  • Build passed after using a pnpm hoist layout for the existing @jest/globals test-utils dependency in this local Codex environment.

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.

Add tests for normalizeStellarAddress trimming, casing, and non-string handling

2 participants