Add more unit tests

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

No files matched your search

+14
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())
}