File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 8
8
ok : $.resp.json.number == 5
9
9
ok : $.resp.status == $.env.STATUS
10
10
number : $.resp.json.number
11
+
11
12
- name : fetches TODO items - GET
12
13
GET : http://localhost:3000/todos
13
14
asserts :
20
21
null : $.resp.json.resp_null
21
22
exports :
22
23
header : $.resp.json.tasks[0]
24
+
23
25
- name : TODO ad items - POST
24
26
POST : http://localhost:3000/todos
25
27
headers :
32
34
ok : $.resp.status == 201
33
35
exports :
34
36
todoItem : $.resp.json.id
37
+
35
38
- name : deletes TODO items - DELETE
36
39
DELETE : " http://localhost:3000/todos/$.stages[2].todoItem"
37
40
asserts :
38
41
string : $.resp.json.task
39
42
number : $.resp.json.id
40
43
ok : $.resp.json.id == $.stages[-1].todoItem
44
+
41
45
- name : Adds Todo item - POST
42
46
POST : http://localhost:3000/todos/
43
47
json :
44
48
task : " run tests"
45
49
asserts :
46
50
ok : $.resp.status == 201
47
51
ok : $.resp.json.task == "run tests"
48
- # ok: $.resp.json.completed
52
+ # ok: $.resp.json.completed
You can’t perform that action at this time.
0 commit comments