Files
descrybe/apps/api/internal/httpapi/accept_invite_url_test.go
T

17 lines
358 B
Go
Raw Normal View History

2026-08-17 00:39:25 +02:00
package httpapi
import (
"testing"
"github.com/descrybe/descrybe-v2/apps/api/internal/mail"
)
func TestAcceptInviteURL(t *testing.T) {
t.Parallel()
got := mail.AcceptInviteURL("http://localhost:28472/", "abc123")
2026-08-17 21:20:45 +02:00
want := "http://localhost:28472/accept-invite#token=abc123"
2026-08-17 00:39:25 +02:00
if got != want {
t.Fatalf("AcceptInviteURL = %q want %q", got, want)
}
}