A community based topic aggregation platform built on atproto

fix(tests): update test assertions to match current implementations

- Update landing page test to check for "Coming soon" placeholder text
instead of expecting AppStoreURL/PlayStoreURL in rendered output
- Update delete account test to expect "Sign In" button text
- Update user repo test to match actual DID validation error message

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Bretton 8ffa92a0 c53dbd8f

+10 -6
+1 -1
internal/db/postgres/user_repo_test.go
··· 200 // Try to delete with invalid DID format 201 err := repo.Delete(ctx, "invalid-did-format") 202 assert.Error(t, err) 203 - assert.Contains(t, err.Error(), "invalid DID format") 204 } 205 206 func TestUserRepo_Delete_Idempotent(t *testing.T) {
··· 200 // Try to delete with invalid DID format 201 err := repo.Delete(ctx, "invalid-did-format") 202 assert.Error(t, err) 203 + assert.Contains(t, err.Error(), "must start with 'did:'") 204 } 205 206 func TestUserRepo_Delete_Idempotent(t *testing.T) {
+9 -5
internal/web/templates_test.go
··· 44 if !bytes.Contains([]byte(body), []byte("Test Description")) { 45 t.Error("Rendered output does not contain description") 46 } 47 - if !bytes.Contains([]byte(body), []byte("https://example.com/appstore")) { 48 - t.Error("Rendered output does not contain App Store URL") 49 } 50 - if !bytes.Contains([]byte(body), []byte("https://example.com/playstore")) { 51 - t.Error("Rendered output does not contain Play Store URL") 52 } 53 if !bytes.Contains([]byte(body), []byte("/static/images/lil_dude.png")) { 54 t.Error("Rendered output does not contain mascot image path") ··· 73 } 74 75 body := w.Body.String() 76 - if !bytes.Contains([]byte(body), []byte("Sign in with Bluesky")) { 77 t.Error("Logged out state does not show sign in button") 78 } 79
··· 44 if !bytes.Contains([]byte(body), []byte("Test Description")) { 45 t.Error("Rendered output does not contain description") 46 } 47 + // App store buttons show "Coming soon" placeholder text (not links yet) 48 + if !bytes.Contains([]byte(body), []byte("Coming soon to")) { 49 + t.Error("Rendered output does not contain App Store coming soon text") 50 } 51 + if !bytes.Contains([]byte(body), []byte("App Store")) { 52 + t.Error("Rendered output does not contain App Store text") 53 + } 54 + if !bytes.Contains([]byte(body), []byte("Google Play")) { 55 + t.Error("Rendered output does not contain Google Play text") 56 } 57 if !bytes.Contains([]byte(body), []byte("/static/images/lil_dude.png")) { 58 t.Error("Rendered output does not contain mascot image path") ··· 77 } 78 79 body := w.Body.String() 80 + if !bytes.Contains([]byte(body), []byte("Sign In")) { 81 t.Error("Logged out state does not show sign in button") 82 } 83