mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
Integrated into release/v3.8.8. Applied review fixes: moved the SELECT 1 into a pingDb() db helper (no raw SQL in route, Hard Rule #5) + the 503 catch no longer leaks err.message (Hard Rule #12). Thanks @herjarsa!
13 lines
577 B
TypeScript
13 lines
577 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import en from "../../src/i18n/messages/en.json" with { type: "json" };
|
|
import pt from "../../src/i18n/messages/pt-BR.json" with { type: "json" };
|
|
|
|
const KEYS = ["conceptKeyHowTitle","conceptKeyHowDesc","conceptExclusiveTitle","conceptExclusiveDesc"];
|
|
test("explanatory card i18n keys exist + parity", () => {
|
|
for (const k of KEYS) {
|
|
assert.equal(typeof (en as any).quotaShare[k], "string", `en missing ${k}`);
|
|
assert.equal(typeof (pt as any).quotaShare[k], "string", `pt missing ${k}`);
|
|
}
|
|
});
|