?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/wdp/wp-content/plugins/brizy/public/editor-client/src/utils/i18n/__tests__/



?? Go up: /home/webdevt/www/wdp/wp-content/plugins/brizy/public/editor-client/src/utils/i18n

?? Viewing: i18n.ts

import { translate } from "../translate";

describe("Testing 'translate' function", function () {
  test("Should return key if it's not in the dictionary", () => {
    expect(translate({}, "key")).toBe("key");
  });

  test("Should return translation if key is present in the dictionary", () => {
    expect(translate({ key: "cheie" }, "key")).toBe("cheie");
  });
});


??

??