ntfy/config/config_test.go

13 lines
211 B
Go
Raw Normal View History

2021-12-07 18:23:42 +01:00
package config_test
import (
"github.com/stretchr/testify/assert"
"heckel.io/ntfy/config"
"testing"
)
func TestConfig_New(t *testing.T) {
c := config.New(":1234")
assert.Equal(t, ":1234", c.ListenHTTP)
}