All runsRun 4f8a0376create todopassed460 ms
  1. httpPOST http://api.todos.local/todos — 201 (361 ms) 2✓392 ms
  2. httpGET http://api.todos.local/todos — 200 (23 ms) 4✓418 ms
  3. dbSELECT id, text, done FROM todos WHERE id = $1 (1 row, 35 ms) 3✓455 ms

httpPOST http://api.todos.local/todos — 201 (361 ms)

Request

{
  "text": "buy milk"
}

Response

{
  "id": 1,
  "text": "buy milk"
}

Assertions

  • status= 201actual=201
  • body.text= "buy milk"actual="buy milk"

httpGET http://api.todos.local/todos — 200 (23 ms)

Request

Response

{
  "todos": [
    {
      "id": 1,
      "text": "buy milk",
      "done": false
    }
  ]
}

Assertions

  • status= 200actual=200
  • body.todos.length= 1actual=1
  • body.todos.0.text= "buy milk"actual="buy milk"
  • body.todos.0.done= falseactual=false

dbdb (1 row, 35 ms)

SELECT id, text, done FROM todos WHERE id = $1

parameters

#value
$11
idtextdone
1buy milkfalse

Assertions

  • length= 1actual=1
  • 0.text= "buy milk"actual="buy milk"
  • 0.done= falseactual=false