mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
Lands five integrated branches: pipeline templates (#355), analytics opt-out (#354), 83 conversion presets bringing the catalog to 240 tools (#356), self-hosted positioning (#353), and e2e modernization (#351). Integration fixes: aligned stale web analytics tests with the opt-out/allow-list model, closed 3 CodeQL incomplete-sanitization alerts in the i18n generator, resolved settings/index/docs/format-matrix conflicts, and corrected tool counts to 240.
23 lines
799 B
TypeScript
23 lines
799 B
TypeScript
import { en } from "@snapotter/shared";
|
|
import { describe, expect, it } from "vitest";
|
|
import {
|
|
getTemplateDescription,
|
|
getTemplateName,
|
|
} from "../../../apps/web/src/lib/template-i18n.js";
|
|
|
|
describe("template-i18n", () => {
|
|
it("resolves a known template's name and description from en", () => {
|
|
expect(getTemplateName(en, "web-optimize", "fallback")).toBe(
|
|
en.pipelineTemplates["web-optimize"].name,
|
|
);
|
|
expect(getTemplateDescription(en, "web-optimize", "fallback")).toBe(
|
|
en.pipelineTemplates["web-optimize"].description,
|
|
);
|
|
});
|
|
|
|
it("returns the fallback for an unknown id", () => {
|
|
expect(getTemplateName(en, "does-not-exist", "fallback")).toBe("fallback");
|
|
expect(getTemplateDescription(en, "does-not-exist", "fallback")).toBe("fallback");
|
|
});
|
|
});
|