mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-30 04:37:06 +00:00
fix unit tests
This commit is contained in:
@@ -70,7 +70,7 @@ type Push struct {
|
||||
IconURL string
|
||||
StarCount int
|
||||
PullCount int
|
||||
IsStarred bool // Whether the current user has starred this repository
|
||||
IsStarred bool // Whether the current user has starred this repository
|
||||
CreatedAt time.Time
|
||||
HoldEndpoint string // Hold endpoint for health checking
|
||||
Reachable bool // Whether the hold endpoint is reachable
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
package jetstream
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestBackfillWorker_Struct(t *testing.T) {
|
||||
backfiller := &BackfillWorker{}
|
||||
if backfiller == nil {
|
||||
t.Error("Expected non-nil backfiller")
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Add backfill tests with mocked ATProto client
|
||||
@@ -1,13 +0,0 @@
|
||||
package jetstream
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestWorker_Struct(t *testing.T) {
|
||||
// Simple struct test
|
||||
worker := &Worker{}
|
||||
if worker == nil {
|
||||
t.Error("Expected non-nil worker")
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Add WebSocket connection tests with mock server
|
||||
@@ -562,6 +562,7 @@ func TestTemplateExecution_RepoCard(t *testing.T) {
|
||||
Description string
|
||||
StarCount int
|
||||
PullCount int
|
||||
IsStarred bool
|
||||
}{
|
||||
OwnerHandle: "alice.bsky.social",
|
||||
Repository: "myapp",
|
||||
@@ -569,6 +570,7 @@ func TestTemplateExecution_RepoCard(t *testing.T) {
|
||||
Description: "A cool container image",
|
||||
StarCount: 42,
|
||||
PullCount: 1337,
|
||||
IsStarred: true,
|
||||
}
|
||||
|
||||
buf := new(bytes.Buffer)
|
||||
|
||||
Reference in New Issue
Block a user