import { makeAppObjectRepo } from "@vived/core";
import { makeStylusEntity } from "../../Stylus/Entity/StylusEntity";
import { makeLabelDropRepo } from "../Entities/LabelDropRepo";
import { makeMockDragLabelDropWorldUC } from "../Mocks/MockDragLabelDropWorldUC";
import { initializeDragLabelDropAnswerItemWorld } from "./initializeDragLabelDropAnswerItemWorld";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = makeLabelDropRepo(ao);
    makeStylusEntity(ao);
    const mockUC = makeMockDragLabelDropWorldUC(appObjects);
    labelDropEntity.makeLabelDropItem("labelDropTestID");
    return { appObjects, ao, labelDropEntity, mockUC };
}
describe("Initialize Drag Label Drop Answer Item World", () => {
    it("Calls initialize on the UC", () => {
        const { mockUC, appObjects } = makeTestRig();
        mockUC.initializeDrag.mockClear();
        initializeDragLabelDropAnswerItemWorld("labelDropTestID", appObjects);
        expect(mockUC.initializeDrag).toHaveBeenCalled();
    });
});
//# sourceMappingURL=initializeDragLabelDropAnswerItemWorld.test.js.map