Skip to content

Commit 2ca6e2b

Browse files
committed
Add test
1 parent b10054e commit 2ca6e2b

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
GET /records/events/1?columns=visitors
2+
===
3+
200
4+
Content-Type: application/json
5+
Content-Length: 14
6+
7+
{"visitors":0}
8+
===
9+
PATCH /records/events/1
10+
11+
{"visitors":1}
12+
===
13+
200
14+
Content-Type: application/json
15+
Content-Length: 1
16+
17+
1
18+
===
19+
PATCH /records/events/1,1
20+
21+
[{"visitors":1},{"visitors":1}]
22+
===
23+
200
24+
Content-Type: application/json
25+
Content-Length: 5
26+
27+
[1,1]
28+
===
29+
GET /records/events/1?columns=visitors
30+
===
31+
200
32+
Content-Type: application/json
33+
Content-Length: 14
34+
35+
{"visitors":3}
36+
===
37+
PATCH /records/events/1
38+
39+
{"visitors":-3}
40+
===
41+
200
42+
Content-Type: application/json
43+
Content-Length: 1
44+
45+
1
46+
===
47+
GET /records/events/1?columns=visitors
48+
===
49+
200
50+
Content-Type: application/json
51+
Content-Length: 14
52+
53+
{"visitors":0}

0 commit comments

Comments
 (0)