All checks were successful
Build (artifact) / build (push) Successful in 1m13s
16 lines
333 B
Go
16 lines
333 B
Go
package server
|
|
|
|
import (
|
|
"fmt"
|
|
"slices"
|
|
"testing"
|
|
)
|
|
|
|
func TestBuildDomainList(t *testing.T) {
|
|
domains := buildDomainList("example.com", []string{"*", "dev"})
|
|
fmt.Printf("domains: %v\n", domains)
|
|
if slices.Compare(domains, []string{"example.com", "*.example.com", "dev.example.com"}) != 0 {
|
|
t.Errorf("domains not equal")
|
|
}
|
|
}
|