Skip to content

test: await ky.post and add delete route test#115

Open
pvbang wants to merge 2 commits into
tscircuit:mainfrom
pvbang:fix/await-ky-and-add-delete-test
Open

test: await ky.post and add delete route test#115
pvbang wants to merge 2 commits into
tscircuit:mainfrom
pvbang:fix/await-ky-and-add-delete-test

Conversation

@pvbang

@pvbang pvbang commented Jun 14, 2026

Copy link
Copy Markdown

Summary

Fixes the ky test coverage for the things routes:

  1. Fix create.test.ts: Added await to ky.post() call and asserts { ok: true } response before verifying the created thing appears in the list.
  2. Add delete.test.ts: New test covering the full create → verify → delete → verify gone flow using ky with URL-encoded form data.

Both tests properly use the ky HTTP client with await, ensuring reliable test execution.

Changes

  • tests/routes/things/create.test.ts - await ky.post(), assert response
  • tests/routes/things/delete.test.ts - new delete route test

Closes #2

/claim #2

Wallet: 0x911d202f713Ee2ad139E8b8b8a0A712347eFE31f

- Fix create.test.ts: await ky.post() call and assert { ok: true } response
- Add delete.test.ts: test create -> verify -> delete -> verify gone flow
- Both tests use ky client properly with await

Closes tscircuit#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to ky from redaxios

1 participant