Skip to content

test(events): add boundary spec cases for royaltyBps and maxResaleMultiplierBps - #464

Merged
EmmanuelOchaje merged 1 commit into
StellarTickets:mainfrom
opascal221-design:fix/93-95-97-99-dto-validators-sort-index-ticket-types
Oct 18, 2026
Merged

EmmanuelOchaje merged 1 commit into
StellarTickets:mainfrom
opascal221-design:fix/93-95-97-99-dto-validators-sort-index-ticket-types

Conversation

@opascal221-design

Copy link
Copy Markdown
Contributor

Closes #93
Closes #95
Closes #97
Closes #99

Adds a describe('royaltyBps and maxResaleMultiplierBps (#97)') block to create-event.dto.spec.ts covering all missing boundary cases for both fields:

  • royaltyBps: accepts 0 (min boundary), accepts 2000 (max boundary), rejects -1 (below min), rejects 1.5 (non-integer)
  • maxResaleMultiplierBps: accepts 10000 (min boundary, exactly 100%), accepts 50000 (max boundary), rejects 50001 (above max), rejects 10000.5 (non-integer)

These tests exercise the existing @Min/@Max/@IsInt validators that guard the contract's royalty and resale-cap fields before any chain call is attempted.

…tiplierBps (StellarTickets#97)

Covers @min(0) and @max boundaries for both fields — negative values,
exact-minimum, exact-maximum, and above-maximum — along with non-integer
rejection to complete the DTO's validation surface.

Closes StellarTickets#93
Closes StellarTickets#95
Closes StellarTickets#97
Closes StellarTickets#99
@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@opascal221-design Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for stellarticketsbackend ready!

Name Link
🔨 Latest commit 7f60428
🔍 Latest deploy log https://app.netlify.com/projects/stellarticketsbackend/deploys/6ad49b20fb10db3a5e1f3e12
😎 Deploy Preview https://deploy-preview-464--stellarticketsbackend.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@EmmanuelOchaje
EmmanuelOchaje merged commit 0c26a09 into StellarTickets:main Oct 18, 2026
4 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

2 participants