1
0
mirror of https://github.com/taigrr/shorturl synced 2025-01-18 04:03:16 -08:00
shorturl/config_test.go
2017-07-02 22:51:46 -07:00

22 lines
313 B
Go

package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestZeroConfig(t *testing.T) {
assert := assert.New(t)
cfg := Config{}
assert.Equal(cfg.FQDN, "")
}
func TestConfig(t *testing.T) {
assert := assert.New(t)
cfg := Config{FQDN: "bar.com"}
assert.Equal(cfg.FQDN, "bar.com")
}