Go boilerplate library for building atproto apps
atproto go
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 27 lines 498 B view raw
1package atp 2 3import ( 4 "testing" 5 6 "github.com/bluesky-social/indigo/atproto/syntax" 7) 8 9func TestNewClient(t *testing.T) { 10 did, err := syntax.ParseDID("did:plc:testuser123") 11 if err != nil { 12 t.Fatal(err) 13 } 14 15 c := NewClient(nil, did) 16 if c.DID() != did { 17 t.Fatalf("got DID %v, want %v", c.DID(), did) 18 } 19} 20 21func TestClient_APIClient(t *testing.T) { 22 did, _ := syntax.ParseDID("did:plc:testuser123") 23 c := NewClient(nil, did) 24 if c.APIClient() != nil { 25 t.Fatal("expected nil APIClient") 26 } 27}