This commit is contained in:
kankys committed 2026-09-13 23:14:39 +02:00
1 parent 4ef7925897
commit 5eccc82603
3 files changed
+83 -3

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
info:
name: Get specific spell
type: http
seq: 3
http:
method: GET
url: http://localhost:3000/spells/5b74ed6d3228320021ab622f
auth: inherit
runtime:
scripts:
- type: tests
code: |-
const expectedSpell={
"id": "5b74ed6d3228320021ab622f",
"spell": "Alohomora",
"type": "Charm",
"effect": "opens locked objects",
"isUnforgivable": false
}
test("It should return the correct spell", function(){
expect(res.getBody()).to.deep.equal(expectedSpell)
})
//deep porovná vše 1:1
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5
forwardAuthorizationHeader: false