Switch to jest
This commit is contained in:
parent
b6bb22dc81
commit
af07168c5b
11 changed files with 2534 additions and 8248 deletions
14
spec/localization/localization.spec.ts
Normal file
14
spec/localization/localization.spec.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import * as fs from "fs-extra";
|
||||
import * as path from "path";
|
||||
|
||||
describe("English and german localization files", () => {
|
||||
const localizationPath = "./src/lang/";
|
||||
const en: Record<string, unknown> = fs.readJSONSync(path.join(localizationPath, "en.json"));
|
||||
const de: Record<string, unknown> = fs.readJSONSync(path.join(localizationPath, "de.json"));
|
||||
|
||||
it("should have the same keys.", () => {
|
||||
const deKeys = Object.keys(de);
|
||||
const enKeys = Object.keys(en);
|
||||
expect(deKeys).toEqual(enKeys);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue