fix test + add new case

This commit is contained in:
6543
2019-11-01 05:48:31 +01:00
parent 47ba722e19
commit 9f3b25c358
2 changed files with 22 additions and 0 deletions
+6
View File
@@ -48,6 +48,12 @@ func TestGetIssueWatchers(t *testing.T) {
iws, err = GetIssueWatchers(2)
assert.NoError(t, err)
// Watcher is not watching
assert.Equal(t, 0, len(iws))
iws, err = GetIssueWatchers(3)
assert.NoError(t, err)
// Watcher is not watching
assert.Equal(t, 1, len(iws))
iws, err = GetIssueWatchers(5)