"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const deleteAllLandmarks_1 = require("./deleteAllLandmarks");
const DeleteAllLandmarksUcMock_1 = require("../Mocks/DeleteAllLandmarksUcMock");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const mockUC = (0, DeleteAllLandmarksUcMock_1.makeDeleteAllLandmarksUcMock)(appObjects);
    return {
        appObjects,
        mockUC,
    };
}
describe("Delete All Landmarks Controller", () => {
    it("Calls deleteAllLandmarks", () => {
        const { appObjects, mockUC } = makeTestRig();
        (0, deleteAllLandmarks_1.deleteAllLandmarks)(appObjects);
        expect(mockUC.deleteAllLandmarks).toHaveBeenCalled();
    });
    it("Submits warning if not found DeleteAllLandmarksUC", () => {
        const appObjects = (0, core_1.makeAppObjectRepo)();
        const mockSubmitWarning = jest.fn();
        appObjects.submitWarning = mockSubmitWarning;
        (0, deleteAllLandmarks_1.deleteAllLandmarks)(appObjects);
        expect(mockSubmitWarning).toHaveBeenCalled();
    });
});
//# sourceMappingURL=deleteAllLandmarks.test.js.map