email-mcp/internal/cli/wire_test.go

29 lines
696 B
Go
Raw Normal View History

package cli
2026-04-13 16:01:28 +00:00
import "testing"
2026-04-10 10:21:58 +00:00
2026-04-13 16:01:28 +00:00
func TestBuildAppReturnsConfiguredApp(t *testing.T) {
app := BuildApp("dev")
if app == nil {
t.Fatal("expected app instance")
}
2026-04-13 16:01:28 +00:00
if app.prompter == nil {
t.Fatal("expected config prompter to be configured")
2026-04-10 10:21:58 +00:00
}
2026-04-13 16:01:28 +00:00
if app.configStore == nil {
t.Fatal("expected config store to be configured")
2026-04-10 10:21:58 +00:00
}
2026-04-13 16:01:28 +00:00
if app.openSecretStore == nil {
t.Fatal("expected secret store opener to be configured")
}
2026-04-13 16:01:28 +00:00
if app.newMailService == nil {
t.Fatal("expected mail service factory to be configured")
2026-04-10 10:21:58 +00:00
}
2026-04-13 16:01:28 +00:00
if app.newRunner == nil {
t.Fatal("expected runner factory to be configured")
2026-04-10 10:21:58 +00:00
}
2026-04-13 16:01:28 +00:00
if app.loadManifest == nil {
t.Fatal("expected manifest loader to be configured")
}
}