import { makeAppObjectRepo } from "@vived/core";
import { makeLabelDropRepo } from "../Entities/LabelDropRepo";
import { makeMockDragLabelDropUC } from "../Mocks/MockDragLabelDropUC";
import { dragLabelDropAnswerItemScreen } from "./dragLabelDropAnswerItemScreen";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = makeLabelDropRepo(ao);
    labelDropEntity.makeLabelDropItem("labelDropTestID");
    const mockUC = makeMockDragLabelDropUC(appObjects);
    return { appObjects, ao, labelDropEntity, mockUC };
}
describe("Drag Label Drop Answer Item", () => {
    it("Calls setPosition2D on the drag label drop UC", () => {
        const { appObjects, mockUC } = makeTestRig();
        dragLabelDropAnswerItemScreen(1, 2, appObjects);
        expect(mockUC.setPosition2D).toHaveBeenCalled();
    });
});
//# sourceMappingURL=dragLabelDropAnswerItemScreen.test.js.map