import { makeAppObjectRepo } from "@vived/core";
import { makeLabelDropRepo } from "../Entities/LabelDropRepo";
import { makeDeleteAllLabelDropUC } from "../UseCases/DeleteAllLabelDropUC";
import { deleteAllLabelDropAnswers } from "./deleteAllLabelDropAnswers";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = makeLabelDropRepo(ao);
    const mockDeleteAllLabelDropUC = jest.fn();
    const deleteAllLabelDropUC = makeDeleteAllLabelDropUC(ao);
    deleteAllLabelDropUC.delete = mockDeleteAllLabelDropUC;
    return { appObjects, ao, labelDropEntity, mockDeleteAllLabelDropUC };
}
describe("Delete All Label Drop Answers", () => {
    it("Calls deleteAllLabelDrop method", () => {
        const { appObjects, mockDeleteAllLabelDropUC } = makeTestRig();
        deleteAllLabelDropAnswers(appObjects);
        expect(mockDeleteAllLabelDropUC).toHaveBeenCalled();
    });
});
//# sourceMappingURL=deleteAllLabelDropAnswers.test.js.map