mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-22 23:07:36 +02:00
change icon from object to string
This commit is contained in:
parent
04f2535e92
commit
99886d7f66
8 changed files with 23 additions and 77 deletions
server
|
@ -1058,7 +1058,7 @@ func TestServer_PublishAsJSON(t *testing.T) {
|
|||
require.Equal(t, "http://google.com", m.Attachment.URL)
|
||||
require.Equal(t, "google.pdf", m.Attachment.Name)
|
||||
require.Equal(t, "http://ntfy.sh", m.Click)
|
||||
require.Equal(t, "https://ntfy.sh/static/img/ntfy.png", m.Icon.URL)
|
||||
require.Equal(t, "https://ntfy.sh/static/img/ntfy.png", m.Icon)
|
||||
|
||||
require.Equal(t, 4, m.Priority)
|
||||
require.True(t, m.Time > time.Now().Unix()+29*60)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue