"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const LabelDropRepo_1 = require("../Entities/LabelDropRepo");
const DeleteAllLabelDropUC_1 = require("../UseCases/DeleteAllLabelDropUC");
const deleteAllLabelDropAnswers_1 = require("./deleteAllLabelDropAnswers");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const ao = appObjects.getOrCreate("ao");
    const labelDropEntity = (0, LabelDropRepo_1.makeLabelDropRepo)(ao);
    const mockDeleteAllLabelDropUC = jest.fn();
    const deleteAllLabelDropUC = (0, DeleteAllLabelDropUC_1.makeDeleteAllLabelDropUC)(ao);
    deleteAllLabelDropUC.delete = mockDeleteAllLabelDropUC;
    return { appObjects, ao, labelDropEntity, mockDeleteAllLabelDropUC };
}
describe("Delete All Label Drop Answers", () => {
    it("Calls deleteAllLabelDrop method", () => {
        const { appObjects, mockDeleteAllLabelDropUC } = makeTestRig();
        (0, deleteAllLabelDropAnswers_1.deleteAllLabelDropAnswers)(appObjects);
        expect(mockDeleteAllLabelDropUC).toHaveBeenCalled();
    });
});
//# sourceMappingURL=deleteAllLabelDropAnswers.test.js.map