settings-index-modules-load.test.ts 829 B

1234567891011121314151617181920
  1. import { describe, expect, test } from "vitest";
  2. import enSettings from "../../../messages/en/settings";
  3. import jaSettings from "../../../messages/ja/settings";
  4. import ruSettings from "../../../messages/ru/settings";
  5. import zhCNSettings from "../../../messages/zh-CN/settings";
  6. import zhTWSettings from "../../../messages/zh-TW/settings";
  7. describe("messages/<locale>/settings module", () => {
  8. test("loads and keeps expected top-level keys", () => {
  9. const all = [enSettings, jaSettings, ruSettings, zhCNSettings, zhTWSettings];
  10. for (const settings of all) {
  11. expect(settings).toHaveProperty("providers");
  12. expect(settings).toHaveProperty("providers.form");
  13. expect(settings).toHaveProperty("mcpPassthroughConfig");
  14. expect(settings).toHaveProperty("mcpPassthroughUrlPlaceholder");
  15. }
  16. });
  17. });