1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-06-26 06:18:04 +02:00

More test; begin test infra stuff

This commit is contained in:
Philipp Heckel 2021-12-07 12:23:42 -05:00
parent 37fafd09e7
commit fd71589f60
4 changed files with 63 additions and 8 deletions

12
config/config_test.go Normal file
View file

@ -0,0 +1,12 @@
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)
}