1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-14 11:47:33 +00:00
binwiederhier-ntfy/server/config_test.go

14 lines
279 B
Go
Raw Normal View History

2021-12-19 03:02:36 +00:00
package server_test
2021-12-07 17:23:42 +00:00
import (
"github.com/stretchr/testify/assert"
2021-12-19 03:02:36 +00:00
"heckel.io/ntfy/server"
2021-12-07 17:23:42 +00:00
"testing"
)
func TestConfig_New(t *testing.T) {
2021-12-22 13:17:50 +00:00
c := server.NewConfig()
assert.Equal(t, ":80", c.ListenHTTP)
assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
2021-12-07 17:23:42 +00:00
}