package deploy

import (
	"strings"
	"testing"
)

func TestStartCloudflaredTunnelEmptyURL(t *testing.T) {
	_, err := StartCloudflaredTunnel("")
	if err == nil || !strings.Contains(err.Error(), "server URL required") {
		t.Fatalf("expected URL error, got %v", err)
	}
	_, err = StartCloudflaredTunnel("   ")
	if err == nil {
		t.Fatal("whitespace-only URL should fail")
	}
}
