Skip to main content
Go to Latest
File
---host: <%= Deno.env.get('HOST') || 'https://faker.deno.dev' %>explanation: If the first block does not have a request its metadata will be use globally for all requests.---###---ref: loginTestname: depends on login---POST https://example.com/onlyAdminAuthorization: Bearer <%= loginTest.body.jwt %>Content-Type: application/json
{"name": "Garn"}
# write the expected response to validate the actual responseHTTP/1.1 403 Forbidden
### requests separator---name: optional nametimeout: 500 # must respond in less than 500ms---GET /?body=hola&status=400host: https://faker.deno.dev
###---name: name---GET https://example.com

HTTP/1.1 200 OKContent-Type: text/html; charset=UTF-8

###---# display: fullredirect: followdescription: | you can pass the requestInit has metadata: fetch api doc: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#parameters---GET /image/avatarquiet: true
###---description: test the response body json declaring an expected responsename: MUST FAIL because the response it not has all the keys.---GET https://httpbin.org/json
HTTP/1.1 200 OKContent-Type: application/json
{ "slideshow": { "title": "Sample Slide Show" }, "unexpected": "this should not be here"}