File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 13
13
is_watching : false
14
14
created_unix : 946684800
15
15
updated_unix : 946684800
16
+
17
+ -
18
+ id : 3
19
+ user_id : 2
20
+ issue_id : 3
21
+ is_watching : true
22
+ created_unix : 946684800
23
+ updated_unix : 946684800
24
+
25
+ -
26
+ id : 3
27
+ user_id : 1
28
+ issue_id : 3
29
+ is_watching : false
30
+ created_unix : 946684800
31
+ updated_unix : 946684800
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ func TestGetIssueWatchers(t *testing.T) {
48
48
49
49
iws , err = GetIssueWatchers (2 )
50
50
assert .NoError (t , err )
51
+ // Watcher is not watching
52
+ assert .Equal (t , 0 , len (iws ))
53
+
54
+ iws , err = GetIssueWatchers (3 )
55
+ assert .NoError (t , err )
56
+ // Watcher is not watching
51
57
assert .Equal (t , 1 , len (iws ))
52
58
53
59
iws , err = GetIssueWatchers (5 )
You can’t perform that action at this time.
0 commit comments