import { describe, it, expect } from "vitest";
import { getPOICategoriesWithAvailableData } from "./index";
describe("getPOICategoriesWithAvailableData", () => {
    it("should return categories with available data", () => {
        const pois = {
            restaurants: [
                {
                    name: "Pizza Place",
                    lat: 0,
                    lng: 0,
                    country: "CA",
                    proximity: { linear_distance: 0 },
                },
            ],
            healthy_restaurants: [
                {
                    name: "Healthy Eatery",
                    lat: 0,
                    lng: 0,
                    country: "CA",
                    proximity: { linear_distance: 0 },
                },
            ],
            parks: [],
        };
        const result = getPOICategoriesWithAvailableData(pois);
        expect(result).toEqual(["restaurants", "healthy_restaurants"]);
    });
    it("should return an empty array if no categories have data", () => {
        const pois = {
            restaurants: [],
            healthy_restaurants: [],
            parks: [],
        };
        const result = getPOICategoriesWithAvailableData(pois);
        expect(result).toEqual([]);
    });
});
//# sourceMappingURL=index.test.js.map