import { makeAppObjectRepo } from "@vived/core";
import { makeStylusEntity } from "../../Stylus/Entity/StylusEntity";
import { makeLabelDropRepo } from "../Entities/LabelDropRepo";
import { makeMockDragLabelDropWorldUC } from "../Mocks/MockDragLabelDropWorldUC";
import { releaseLabelDropAnswerItemWorld } from "./releaseLabelDropAnswerItemWorld";
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("Release Drag Label Drop Answer Item World", () => {
    it("Calls release on the UC", () => {
        const { mockUC, appObjects } = makeTestRig();
        mockUC.releaseDrag.mockClear();
        releaseLabelDropAnswerItemWorld(appObjects);
        expect(mockUC.releaseDrag).toHaveBeenCalled();
    });
});
//# sourceMappingURL=releaseLabelDropAnswerItemWorld.test.js.map