"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
const EditLabelDropUC_1 = require("../UseCases/EditLabelDropUC");
const discardEditLabelDropAnswer_1 = require("./discardEditLabelDropAnswer");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = (0, LabelDropRepo_1.makeLabelDropRepo)(ao);
    const editlabelDropUC = (0, EditLabelDropUC_1.makeEditLabelDropUC)(ao);
    return {
        appObjects,
        ao,
        labelDropEntity,
        editlabelDropUC,
    };
}
describe("Discard Edit Label Drop Answer", () => {
    it("Discards the changes on the edit label drop use case", () => {
        const { appObjects, editlabelDropUC } = makeTestRig();
        editlabelDropUC.discard = jest.fn();
        (0, discardEditLabelDropAnswer_1.discardEditLabelDropAnswer)(appObjects);
        expect(editlabelDropUC.discard).toHaveBeenCalled();
    });
});
//# sourceMappingURL=discardEditLabelDropAnswer.test.js.map