forked from fahrPool/fahrPool
21 lines
646 B
TypeScript
21 lines
646 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { fotoBezeichnung, STANDARD_FOTO_POSITIONEN } from "./foto-positionen";
|
|
|
|
describe("fotoBezeichnung", () => {
|
|
it("liefert lesbare Namen fuer alle Standardpositionen", () => {
|
|
expect(STANDARD_FOTO_POSITIONEN.map(fotoBezeichnung)).toEqual([
|
|
"Front",
|
|
"Seitlich rechts",
|
|
"Rechte Seite",
|
|
"Seitlich rechts Heck",
|
|
"Heck",
|
|
"Seitlich links Heck",
|
|
"Linke Seite",
|
|
"Seitlich vorne links",
|
|
]);
|
|
});
|
|
it("faellt bei unbekannten Positionen auf den Rohwert zurueck", () => {
|
|
expect(fotoBezeichnung("dach_hinten")).toBe("dach hinten");
|
|
});
|
|
});
|