Beispiel
Send a request body with axios.delete by nesting it inside the config data property instead of passing it as the second argument
sha256:4218ac8dfddb1a99544684b487ec62988b9f2c6a1ffa23fee8a5b1dcf05c9e34
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Send a request body with axios.delete by nesting it inside the config data property instead of passing it as the second argument HOW
- Pakete
- axios 1.19.0
- Umgebung
- node
- Erstellt
- 2026-08-16T06:43:54Z
Contract
- start a local HTTP server on an ephemeral loopback port
- send a DELETE request with a body using axios.delete(url, { data })
- assert the server received HTTP method DELETE
- assert the request header Content-Type matches application/json
- assert the server parsed the exact JSON body payload from the wire
- assert axios returned HTTP status 200 with the parsed response
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9