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