feat(plugins): add source-control extension contracts (#2117)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
toTaskPreset,
|
||||
} from "./action-presets";
|
||||
import { IconEye, IconSparkles } from "@tabler/icons-react";
|
||||
import { iconForIntegrationPreset } from "@/components/integrations/integration-preset-icons";
|
||||
|
||||
describe("interpolatePromptTemplate", () => {
|
||||
it("replaces {{url}} and {{title}} placeholders", () => {
|
||||
@@ -47,6 +48,10 @@ describe("iconForPresetKey", () => {
|
||||
expect(iconForPresetKey("eye")).toBe(IconEye);
|
||||
});
|
||||
|
||||
it.each(["eye", "message", "tool"])("shares the host semantic %s glyph", (key) => {
|
||||
expect(iconForPresetKey(key)).toBe(iconForIntegrationPreset(key));
|
||||
});
|
||||
|
||||
it("falls back to sparkle for unknown or missing keys", () => {
|
||||
expect(iconForPresetKey(undefined)).toBe(IconSparkles);
|
||||
expect(iconForPresetKey("nonsense")).toBe(IconSparkles);
|
||||
|
||||
Reference in New Issue
Block a user