Add more unit tests

This commit is contained in:
Jamie Curnow
2023-07-31 13:49:11 +10:00
parent 6584f87dd2
commit db95a465c8
6 changed files with 166 additions and 79 deletions

View File

@ -0,0 +1,14 @@
package config
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestAcmeshGetWellknown(t *testing.T) {
a := acmesh{
Home: "/data/.acme.sh",
}
assert.Equal(t, "/data/.acme.sh/.well-known", a.GetWellknown())
}