From 7e84b912c56b65c070b2bbd6b0284505ba579338 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 1 Apr 2026 20:58:40 +0300 Subject: Strengthen Nano Banana metadata assertion --- internal/image/nanobanana_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'internal/image') diff --git a/internal/image/nanobanana_test.go b/internal/image/nanobanana_test.go index 9c9dacd..5b4f5ef 100644 --- a/internal/image/nanobanana_test.go +++ b/internal/image/nanobanana_test.go @@ -105,11 +105,9 @@ func TestNanoBananaClient_Search_CustomPromptSkipsTextGeneration(t *testing.T) { if len(results) != 1 { t.Fatalf("expected 1 result, got %d", len(results)) } - if !strings.Contains(results[0].Description, "ябълка") { - t.Fatalf("result description = %q, want it to mention the query", results[0].Description) - } - if !strings.Contains(results[0].Description, "banana") { - t.Fatalf("result description = %q, want translation metadata from custom prompt", results[0].Description) + wantDescription := "Generated educational image for ябълка (banana)" + if results[0].Description != wantDescription { + t.Fatalf("result description = %q, want %q", results[0].Description, wantDescription) } if !strings.HasPrefix(results[0].URL, "data:image/png;base64,") { t.Fatalf("expected PNG data URI, got %q", results[0].URL) -- cgit v1.2.3