supersam/src/components/logistics/LogisticsReadinessBoard.tes...

24 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { describe, expect, it } from "vitest";
import { DELIVERY_SET_BUCKET_LABELS } from "../../services/deliverySetViews";
describe("LogisticsReadinessBoard", () => {
it("renders all delivery-set bucket labels from the model", () => {
const bucketKeys = Object.keys(DELIVERY_SET_BUCKET_LABELS);
expect(bucketKeys).toContain("approaching");
expect(bucketKeys).toContain("ready_to_launch");
expect(bucketKeys).toContain("awaiting_client");
expect(bucketKeys).toContain("manual_work");
expect(bucketKeys).toContain("agreed");
expect(bucketKeys).toContain("completed");
expect(bucketKeys).toHaveLength(6);
});
it("renders bucket labels in Russian", () => {
expect(DELIVERY_SET_BUCKET_LABELS.approaching).toBe("На подходе");
expect(DELIVERY_SET_BUCKET_LABELS.ready_to_launch).toBe("Готово к запуску");
expect(DELIVERY_SET_BUCKET_LABELS.awaiting_client).toBe("Ожидает клиента");
expect(DELIVERY_SET_BUCKET_LABELS.manual_work).toBe("Нужна ручная работа");
expect(DELIVERY_SET_BUCKET_LABELS.agreed).toBe("Согласовано");
expect(DELIVERY_SET_BUCKET_LABELS.completed).toBe("Завершено");
});
});