config_test.go 282 B

12345678910111213
  1. package server_test
  2. import (
  3. "github.com/stretchr/testify/assert"
  4. "heckel.io/ntfy/v2/server"
  5. "testing"
  6. )
  7. func TestConfig_New(t *testing.T) {
  8. c := server.NewConfig()
  9. assert.Equal(t, ":80", c.ListenHTTP)
  10. assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
  11. }