Skip to content

test: implement paywall test cases (replace it.todo placeholders)#1930

Open
natsukingly wants to merge 1 commit intox402-foundation:mainfrom
natsukingly:test/paywall-tests
Open

test: implement paywall test cases (replace it.todo placeholders)#1930
natsukingly wants to merge 1 commit intox402-foundation:mainfrom
natsukingly:test/paywall-tests

Conversation

@natsukingly
Copy link
Copy Markdown

Summary

@x402/paywall had 3 it.todo placeholders and 1 trivial expect(true).toBe(true) test. This PR replaces them with actual test implementations.

Changes

  • Implemented tests for createPaywall factory function
  • Implemented tests for PaywallBuilder fluent API
  • Implemented tests for evmPaywall and svmPaywall convenience functions
  • All tests verify correct HTML generation, route configuration, and network handling

Test plan

  • All new tests pass
  • Full monorepo build passes

@github-actions github-actions bot added typescript sdk Changes to core v2 packages labels Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk Changes to core v2 packages typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant