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:
parent
37fafd09e7
commit
fd71589f60
4 changed files with 63 additions and 8 deletions
config
12
config/config_test.go
Normal file
12
config/config_test.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue