import { makeAppObjectRepo } from "@vived/core";
import { LookAtCameraUC } from "../UC";
import { makeCalloutFactory } from "./calloutFactory";
describe("Setup Callouts", () => {
    it("Sets up Look At Camera UC by default", () => {
        const appObjects = makeAppObjectRepo();
        const factory = makeCalloutFactory(appObjects);
        const calloutAO = factory("someCalloutID").appObject;
        expect(calloutAO.hasComponent(LookAtCameraUC.type)).toBe(true);
    });
    it("Uses the look at factory if it is passed in", () => {
        const appObjects = makeAppObjectRepo();
        const lookAtCameraFactory = jest.fn();
        const factory = makeCalloutFactory(appObjects, { lookAtCameraFactory });
        const calloutAO = factory("someCalloutID").appObject;
        expect(lookAtCameraFactory).toHaveBeenCalledWith(calloutAO);
        expect(calloutAO.hasComponent(LookAtCameraUC.type)).toBe(false); // Proves the default factory was not called
    });
});
//# sourceMappingURL=calloutFactory.test.js.map