Add /api/v1/notifications/dismiss
This commit is contained in:
parent
c09198f7c9
commit
8f6192e26b
3 changed files with 20 additions and 0 deletions
|
@ -20,6 +20,9 @@ func TestGetNotifications(t *testing.T) {
|
|||
case "/api/v1/notifications/clear":
|
||||
fmt.Fprintln(w, `{}`)
|
||||
return
|
||||
case "/api/v1/notifications/dismiss":
|
||||
fmt.Fprintln(w, `{}`)
|
||||
return
|
||||
}
|
||||
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
|
||||
return
|
||||
|
@ -56,4 +59,8 @@ func TestGetNotifications(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("should not be fail: %v", err)
|
||||
}
|
||||
err = client.DismissNotification(context.Background(), "123")
|
||||
if err != nil {
|
||||
t.Fatalf("should not be fail: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue