var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
import { describe, expect, it } from "vitest";
import { trackingFn } from "..";
function mockRequest() {
    return {
        post: () => Promise.resolve(undefined),
    };
}
describe("LocalLogicTracking", () => {
    it("returns the response without data", () => __awaiter(void 0, void 0, void 0, function* () {
        const request = mockRequest();
        const tracking = yield trackingFn(request)({
            event_type: "LC-Viewed",
            event_version: "1.0.0",
            isTestEvent: true,
            meta: {
                user_id: "0001",
                session_id: "0001",
                page_load_id: "0001",
                product_version: "1.0.0",
                product_name: "local-content",
            },
            attributes: {
                lat: 45.5282164,
                lng: -73.5978527,
            },
        });
        expect(tracking).toBeUndefined();
    }));
});
//# sourceMappingURL=index.test.js.map