"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 dragLabelDropAnswerItemScreen_1 = require("./dragLabelDropAnswerItemScreen");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = (0, LabelDropRepo_1.makeLabelDropRepo)(ao);
    labelDropEntity.makeLabelDropItem("labelDropTestID");
    const mockUC = (0, MockDragLabelDropUC_1.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();
        (0, dragLabelDropAnswerItemScreen_1.dragLabelDropAnswerItemScreen)(1, 2, appObjects);
        expect(mockUC.setPosition2D).toHaveBeenCalled();
    });
});
//# sourceMappingURL=dragLabelDropAnswerItemScreen.test.js.map