config_test.go 211 B

123456789101112
  1. package config_test
  2. import (
  3. "github.com/stretchr/testify/assert"
  4. "heckel.io/ntfy/config"
  5. "testing"
  6. )
  7. func TestConfig_New(t *testing.T) {
  8. c := config.New(":1234")
  9. assert.Equal(t, ":1234", c.ListenHTTP)
  10. }