"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 initializeDragLabelDropAnswerItemWorld_1 = require("./initializeDragLabelDropAnswerItemWorld");
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("Initialize Drag Label Drop Answer Item World", () => {
    it("Calls initialize on the UC", () => {
        const { mockUC, appObjects } = makeTestRig();
        mockUC.initializeDrag.mockClear();
        (0, initializeDragLabelDropAnswerItemWorld_1.initializeDragLabelDropAnswerItemWorld)("labelDropTestID", appObjects);
        expect(mockUC.initializeDrag).toHaveBeenCalled();
    });
});
//# sourceMappingURL=initializeDragLabelDropAnswerItemWorld.test.js.map