"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
const MockDragLabelDropUC_1 = require("../Mocks/MockDragLabelDropUC");
const initializeDragLabelDropAnswerItem_1 = require("./initializeDragLabelDropAnswerItem");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = (0, LabelDropRepo_1.makeLabelDropRepo)(ao);
    const mockUC = (0, MockDragLabelDropUC_1.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();
        (0, initializeDragLabelDropAnswerItem_1.initializeDragLabelDropAnswerItem)("labelDropTestID", 10, 20, appObjects);
        expect(mockUC.initialize).toHaveBeenCalled();
    });
});
//# sourceMappingURL=initializeDragLabelDropAnswerItem.test.js.map