DIK-43: фильтры по расстоянию и цене #23

Merged
peppa-bot merged 2 commits from task/dik-43 into main 2026-11-16 15:27:31 +05:00
Showing only changes of commit bc38915913 - Show all commits

View File

@ -65,6 +65,7 @@ test("карточка списка отдаёт фото и описание и
const [a, b] = buildList([{ ...base, photo: "https://e.kz/a.jpg", description: "Уютно" }, { ...base, id: "b" }], 51.12, 71.43);
assert.equal(a.photo, "https://e.kz/a.jpg"); assert.equal(a.description, "Уютно");
assert.equal(b.photo, null); assert.equal(b.description, null);
});
test("Сценарий: фильтр расстояния до 1 км", () => {
const l = buildList(venues, 51.1283, 71.4305, { now: wed13, maxKm: 1 });