mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-25 18:31:07 +03:00
14 lines
282 B
Go
14 lines
282 B
Go
package server_test
|
|
|
|
import (
|
|
"github.com/stretchr/testify/assert"
|
|
"heckel.io/ntfy/v2/server"
|
|
"testing"
|
|
)
|
|
|
|
func TestConfig_New(t *testing.T) {
|
|
c := server.NewConfig()
|
|
assert.Equal(t, ":80", c.ListenHTTP)
|
|
assert.Equal(t, server.DefaultKeepaliveInterval, c.KeepaliveInterval)
|
|
}
|