import { makeAppObjectRepo } from "@vived/core";
import { makeLabelDropRepo } from "../Entities/LabelDropRepo";
import { makeMockDragLabelDropUC } from "../Mocks/MockDragLabelDropUC";
import { initializeDragLabelDropAnswerItem } from "./initializeDragLabelDropAnswerItem";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = makeLabelDropRepo(ao);
    const mockUC = makeMockDragLabelDropUC(appObjects);
    labelDropEntity.makeLabelDropItem("labelDropTestID");
    return { appObjects, ao, labelDropEntity, mockUC };
}
describe("Initialize Drag Label Drop Answer Item", () => {
    it("Calls initialize and set position 2D on the UC", () => {
        const { mockUC, appObjects } = makeTestRig();
        mockUC.initialize.mockClear();
        initializeDragLabelDropAnswerItem("labelDropTestID", 10, 20, appObjects);
        expect(mockUC.initialize).toHaveBeenCalled();
    });
});
//# sourceMappingURL=initializeDragLabelDropAnswerItem.test.js.map