- Test token validation (invalid token returns 404) - Test request validation (missing body, missing 'd' field, invalid JSON return 400) - Test decryption validation (invalid encrypted data returns 403) - Test new visitor creation with full fields, optional fields, mobile/tablet UA - Test page view dispatch with valid hash, default values - Test page view rejection with invalid/missing hash (403) - Test setUser dispatch with valid hash - Test visitor UID format (UUID v4), IP hash, UA truncation, language truncation - Test response hash is verifiable by crypto service Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 KiB
18 KiB