import { makeAppObjectRepo } from "@vived/core";
import { deleteAllLandmarks } from "./deleteAllLandmarks";
import { makeDeleteAllLandmarksUcMock } from "../Mocks/DeleteAllLandmarksUcMock";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const mockUC = makeDeleteAllLandmarksUcMock(appObjects);
    return {
        appObjects,
        mockUC,
    };
}
describe("Delete All Landmarks Controller", () => {
    it("Calls deleteAllLandmarks", () => {
        const { appObjects, mockUC } = makeTestRig();
        deleteAllLandmarks(appObjects);
        expect(mockUC.deleteAllLandmarks).toHaveBeenCalled();
    });
    it("Submits warning if not found DeleteAllLandmarksUC", () => {
        const appObjects = makeAppObjectRepo();
        const mockSubmitWarning = jest.fn();
        appObjects.submitWarning = mockSubmitWarning;
        deleteAllLandmarks(appObjects);
        expect(mockSubmitWarning).toHaveBeenCalled();
    });
});
//# sourceMappingURL=deleteAllLandmarks.test.js.map