We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47ba722 commit 9f3b25cCopy full SHA for 9f3b25c
models/fixtures/issue_watch.yml
@@ -13,3 +13,19 @@
13
is_watching: false
14
created_unix: 946684800
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
27
+ user_id: 1
28
29
+ is_watching: false
30
31
models/issue_watch_test.go
@@ -48,6 +48,12 @@ func TestGetIssueWatchers(t *testing.T) {
48
49
iws, err = GetIssueWatchers(2)
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
57
assert.Equal(t, 1, len(iws))
58
59
iws, err = GetIssueWatchers(5)
0 commit comments