2021-06-26 22:02:00 +02:00
|
|
|
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2021-01-10 03:07:08 +01:00
|
|
|
import * as fs from "fs-extra";
|
|
|
|
import * as path from "path";
|
|
|
|
|
|
|
|
describe("English and german localization files", () => {
|
2022-01-31 15:13:32 +01:00
|
|
|
const localizationPath = "./lang/";
|
2021-01-10 03:07:08 +01:00
|
|
|
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);
|
|
|
|
});
|
|
|
|
});
|