From 506d8b002b904ef7b9dce6fada8babddbfca962c Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Fri, 2 Jan 2026 15:25:09 -0600 Subject: [PATCH] fix unit tests --- pkg/appview/jetstream/processor_test.go | 1 + pkg/appview/ui_test.go | 30 +++++++++++++------------ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/pkg/appview/jetstream/processor_test.go b/pkg/appview/jetstream/processor_test.go index 78fcafe..cb2fcd9 100644 --- a/pkg/appview/jetstream/processor_test.go +++ b/pkg/appview/jetstream/processor_test.go @@ -38,6 +38,7 @@ func setupTestDB(t *testing.T) *sql.DB { media_type TEXT NOT NULL, config_digest TEXT, config_size INTEGER, + artifact_type TEXT NOT NULL DEFAULT 'container-image', created_at TIMESTAMP NOT NULL, UNIQUE(did, repository, digest) ); diff --git a/pkg/appview/ui_test.go b/pkg/appview/ui_test.go index 6efa756..191c422 100644 --- a/pkg/appview/ui_test.go +++ b/pkg/appview/ui_test.go @@ -571,21 +571,23 @@ func TestTemplateExecution_RepoCard(t *testing.T) { // Sample data for repo-card template data := struct { - OwnerHandle string - Repository string - IconURL string - Description string - StarCount int - PullCount int - IsStarred bool + OwnerHandle string + Repository string + IconURL string + Description string + StarCount int + PullCount int + IsStarred bool + ArtifactType string }{ - OwnerHandle: "alice.bsky.social", - Repository: "myapp", - IconURL: "", - Description: "A cool container image", - StarCount: 42, - PullCount: 1337, - IsStarred: true, + OwnerHandle: "alice.bsky.social", + Repository: "myapp", + IconURL: "", + Description: "A cool container image", + StarCount: 42, + PullCount: 1337, + IsStarred: true, + ArtifactType: "container-image", } buf := new(bytes.Buffer)