@@ -81,6 +81,10 @@ func TestAPINotification(t *testing.T) {
81
81
assert .EqualValues (t , thread5 .Issue .APIURL (), apiN .Subject .URL )
82
82
assert .EqualValues (t , thread5 .Repository .HTMLURL (), apiN .Repository .HTMLURL )
83
83
84
+ // -- check notifications --
85
+ req = NewRequest (t , "GET" , fmt .Sprintf ("/api/v1/notifications/new?token=%s" , token ))
86
+ resp = session .MakeRequest (t , req , http .StatusFound )
87
+
84
88
// -- mark notifications as read --
85
89
req = NewRequest (t , "GET" , fmt .Sprintf ("/api/v1/notifications?token=%s" , token ))
86
90
resp = session .MakeRequest (t , req , http .StatusOK )
@@ -103,4 +107,8 @@ func TestAPINotification(t *testing.T) {
103
107
assert .Equal (t , models .NotificationStatusUnread , thread5 .Status )
104
108
thread5 = models .AssertExistsAndLoadBean (t , & models.Notification {ID : 5 }).(* models.Notification )
105
109
assert .Equal (t , models .NotificationStatusRead , thread5 .Status )
110
+
111
+ // -- check notifications --
112
+ req = NewRequest (t , "GET" , fmt .Sprintf ("/api/v1/notifications/new?token=%s" , token ))
113
+ resp = session .MakeRequest (t , req , http .StatusNoContent )
106
114
}
0 commit comments