import { makeAppObjectRepo } from "@vived/core";
import { makeLabelDropRepo } from "../Entities/LabelDropRepo";
import { makeEditLabelDropUC } from "../UseCases/EditLabelDropUC";
import { discardEditLabelDropAnswer } from "./discardEditLabelDropAnswer";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = makeLabelDropRepo(ao);
    const editlabelDropUC = 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();
        discardEditLabelDropAnswer(appObjects);
        expect(editlabelDropUC.discard).toHaveBeenCalled();
    });
});
//# sourceMappingURL=discardEditLabelDropAnswer.test.js.map