@@ -26,15 +26,15 @@ func TestGetIssueWatch(t *testing.T) {
26
26
assert .NoError (t , PrepareTestDatabase ())
27
27
28
28
_ , exists , err := GetIssueWatch (9 , 1 )
29
- assert .Equal ( t , true , exists )
29
+ assert .True ( t , exists )
30
30
assert .NoError (t , err )
31
31
32
32
_ , exists , err = GetIssueWatch (2 , 2 )
33
- assert .Equal ( t , false , exists )
33
+ assert .False ( t , exists )
34
34
assert .NoError (t , err )
35
35
36
36
_ , exists , err = GetIssueWatch (3 , 1 )
37
- assert .Equal ( t , false , exists )
37
+ assert .False ( t , exists )
38
38
assert .NoError (t , err )
39
39
}
40
40
@@ -48,15 +48,16 @@ func TestGetIssueWatchers(t *testing.T) {
48
48
49
49
iws , err = GetIssueWatchers (2 )
50
50
assert .NoError (t , err )
51
- // Watcher is not watching
51
+ // Watcher is explicit not watching
52
52
assert .Equal (t , 0 , len (iws ))
53
53
54
54
iws , err = GetIssueWatchers (5 )
55
55
assert .NoError (t , err )
56
+ // Issue has no Watchers
56
57
assert .Equal (t , 0 , len (iws ))
57
58
58
59
iws , err = GetIssueWatchers (7 )
59
60
assert .NoError (t , err )
60
- // Watcher is not watching
61
+ // Issue has one watcher
61
62
assert .Equal (t , 1 , len (iws ))
62
63
}
0 commit comments