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-19 03:02:36 +00:00
|
|
|
c := server.NewConfig(":1234")
|
2021-12-07 17:23:42 +00:00
|
|
|
assert.Equal(t, ":1234", c.ListenHTTP)
|
|
|
|
}
|