package users

import (
	"testing"
)

func TestLookupUserIDEmptyExternalID(t *testing.T) {
	_, err := LookupUserID(t.Context(), nil, "")
	if err == nil {
		t.Fatal("expected error for empty external id")
	}
}

func TestLookupUserIDByEmailEmpty(t *testing.T) {
	_, err := LookupUserIDByEmail(t.Context(), nil, "")
	if err == nil {
		t.Fatal("expected error for empty email")
	}
}

func TestResolveProvisionUserRequiresIdentity(t *testing.T) {
	_, err := ResolveProvisionUser(t.Context(), nil, "", "user@example.com", "User")
	if err == nil {
		t.Fatal("expected error without external_id or existing user")
	}
}
