import { SupportedLanguage } from "../src/protocol/command/baseparams"; import { InitialTranslations } from "../src/protocol/init"; import { JSONString } from "../src/@types"; describe("JSONStringified", () => { it("should be OK to JSON.parse", () => { const response: JSONString = '{"de": {"some": "token"}}'; const parsed = JSON.parse(response); expect(parsed[SupportedLanguage.DE]?.some).toEqual("token"); }); });