mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-28 15:32:13 +00:00
fix: clarify Grok media pricing controls
This commit is contained in:
1 parent
6f43986c37
commit
890cc2bb98
5 files changed
+58
-17
No files matched your search
@@ -2,6 +2,7 @@ import { describe, expect, it } from "vitest";
|
||||
|
||||
import {
|
||||
imagePricingPlatforms,
|
||||
imagePricingI18nKey,
|
||||
supportsImagePricingPlatform,
|
||||
} from "../groupsImagePricing";
|
||||
|
||||
@@ -14,4 +15,13 @@ describe("groups image pricing platform support", () => {
|
||||
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",
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user