mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-28 15:32:13 +00:00
28 lines
832 B
TypeScript
28 lines
832 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import {
|
|
imagePricingPlatforms,
|
|
imagePricingI18nKey,
|
|
supportsImagePricingPlatform,
|
|
} from "../groupsImagePricing";
|
|
|
|
describe("groups image pricing platform support", () => {
|
|
it("includes Grok media groups", () => {
|
|
expect(supportsImagePricingPlatform("grok")).toBe(true);
|
|
expect(imagePricingPlatforms.has("grok")).toBe(true);
|
|
});
|
|
|
|
it("keeps non-media group platforms out of the image pricing controls", () => {
|
|
expect(supportsImagePricingPlatform("anthropic")).toBe(false);
|
|
});
|
|
|
|
it("uses media pricing copy for Grok groups only", () => {
|
|
expect(imagePricingI18nKey("grok", "title")).toBe(
|
|
"admin.groups.mediaPricing.title",
|
|
);
|
|
expect(imagePricingI18nKey("openai", "title")).toBe(
|
|
"admin.groups.imagePricing.title",
|
|
);
|
|
});
|
|
});
|