UNPKG

@rr0/cms

Version:

RR0 Content Management System (CMS)

23 lines (22 loc) 1.19 kB
import { beforeEach, describe, expect, test } from "@javarome/testscript"; import { rr0TestUtil } from "../../../../test/index.js"; import { idfMessages } from "../../../eu/fr/region/idf/IdfMessages.js"; import { france_fr } from "../../../eu/fr/France_fr.js"; import { hautsDeSeineMessages } from "../../../eu/fr/region/idf/92/HautsDeSeineMessages.js"; import { hautsDeSeine } from "../../../eu/fr/region/idf/92/HautsDeSeine.js"; describe("DepartmentMessages", () => { let context; beforeEach(() => { context = rr0TestUtil.newContext("time/1/9/7/0/03/index.html"); }); test("toTitle", () => { expect(hautsDeSeineMessages.toTitle(context, hautsDeSeine, { parent: false })).toBe(hautsDeSeineMessages.title); }); /* test("toTitle with region", () => { expect(hautsDeSeineMessages.toTitle(context, hautsDeSeine, {parent: true})).toBe( `${hautsDeSeineMessages.title}, ${idfMessages.title}`) })*/ test("toTitle with region and country", () => { expect(hautsDeSeineMessages.toTitle(context, hautsDeSeine, { parent: true })).toBe(`${hautsDeSeineMessages.title}, ${idfMessages.title}, ${france_fr.title}`); }); });