import { updateCalloutSize } from "./updateCalloutSize";
import { SetCalloutSizeUcMock } from "../Mocks/SetCalloutSizeUcMock";
import { makeAppObjectRepo } from "@vived/core";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const mockUC = new SetCalloutSizeUcMock(appObjects.getOrCreate("MockCallout"));
    const mockSubmitWarning = jest.fn();
    appObjects.submitWarning = mockSubmitWarning;
    return {
        appObjects,
        mockUC,
        mockSubmitWarning,
    };
}
describe("Update Callout Sise Controller", () => {
    it("Calls updateSize", () => {
        const { appObjects, mockUC } = makeTestRig();
        updateCalloutSize(0.7, "MockCallout", appObjects);
        expect(mockUC.updateSize).toHaveBeenCalledWith(0.7);
    });
});
//# sourceMappingURL=updateCalloutSize.test.js.map