1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-24 02:32:48 +01:00
ntfy/server/config_test.go
2021-12-22 14:17:50 +01:00

13 lines
279 B
Go

package server_test
import (
"github.com/stretchr/testify/assert"
"heckel.io/ntfy/server"
"testing"
)
func TestConfig_New(t *testing.T) {
c := server.NewConfig()
assert.Equal(t, ":80", c.ListenHTTP)
assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
}