• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ProjectOpenSea / opensea-js / 13661846024

04 Mar 2025 07:56PM UTC coverage: 50.967% (+2.1%) from 48.868%
13661846024

push

github

web-flow
feat: Add input validation for postOrder API options (#1610)

* feat: Add apiOptions validation in postOrder method

Added validation for apiOptions in postOrder method to prevent API calls that would definitely fail. The validation includes:
- Required fields checking
- Protocol value validation
- Side value validation
- Protocol address format validation

Resolves TODO comment in api.ts

* Create postOrder.validation.spec.ts

* Update postOrder.validation.spec.ts

111 of 352 branches covered (31.53%)

Branch coverage included in aggregate %.

49 of 55 new or added lines in 2 files covered. (89.09%)

1 existing line in 1 file now uncovered.

574 of 992 relevant lines covered (57.86%)

1.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.24
/src/api/api.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc