testingrequired / restspec

Interact or test REST resources from the command line.
MIT License
0 stars 0 forks source link

Custom asserts for tests #15

Open kyleect opened 5 years ago

kyleect commented 5 years ago

Examples

[
  assert.response.ok,
  assert.response.time.lessThan(30),
  await assert.response.body.text.includes("Query string"),
  await assert.response.body.json.deepStrictEqual({data: []})
]

Questions

kyleect commented 5 years ago

Reading multiple body types

https://stackoverflow.com/a/40497917/394811