"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const StylusEntity_1 = require("../../Stylus/Entity/StylusEntity");
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
const MockDragLabelDropWorldUC_1 = require("../Mocks/MockDragLabelDropWorldUC");
const releaseLabelDropAnswerItemWorld_1 = require("./releaseLabelDropAnswerItemWorld");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = (0, LabelDropRepo_1.makeLabelDropRepo)(ao);
    (0, StylusEntity_1.makeStylusEntity)(ao);
    const mockUC = (0, MockDragLabelDropWorldUC_1.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();
        (0, releaseLabelDropAnswerItemWorld_1.releaseLabelDropAnswerItemWorld)(appObjects);
        expect(mockUC.releaseDrag).toHaveBeenCalled();
    });
});
//# sourceMappingURL=releaseLabelDropAnswerItemWorld.test.js.map