Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { migratedAgentGUIProviderIdentityCatalog } from "./providerIdentityCatalog.ts";
|
|
import {
|
|
PROVIDER_ICON_ASSETS_BY_ICON_KEY,
|
|
PROVIDER_ICON_ASSET_VARIANTS,
|
|
resolveProviderIconAsset
|
|
} from "./providerIconAssets.ts";
|
|
|
|
describe("provider icon assets", () => {
|
|
it("covers every icon key emitted by the migrated provider catalog", () => {
|
|
for (const identity of migratedAgentGUIProviderIdentityCatalog) {
|
|
expect(
|
|
PROVIDER_ICON_ASSETS_BY_ICON_KEY[identity.iconKey],
|
|
`missing icon assets for ${identity.providerId}:${identity.iconKey}`
|
|
).toBeDefined();
|
|
for (const variant of PROVIDER_ICON_ASSET_VARIANTS) {
|
|
expect(
|
|
resolveProviderIconAsset(identity.iconKey, variant),
|
|
`missing ${variant} icon for ${identity.providerId}:${identity.iconKey}`
|
|
).not.toBeNull();
|
|
}
|
|
}
|
|
});
|
|
|
|
it("returns null for unknown icon keys instead of a Tutti asset", () => {
|
|
expect(resolveProviderIconAsset("unknown-provider", "rounded")).toBeNull();
|
|
expect(resolveProviderIconAsset(undefined, "manage")).toBeNull();
|
|
});
|
|
});
|