All runsRun 2efca69ecreate todopassed468 ms
  1. httpPOST http://api.todos.local/todos — 201 (372 ms) 2✓412 ms
  2. httpGET http://api.todos.local/todos — 200 (16 ms) 4✓430 ms
  3. dbSELECT id, text, done FROM todos WHERE id = $1 (1 row, 29 ms) 3✓460 ms

httpPOST http://api.todos.local/todos — 201 (372 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 (16 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, 29 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