import { submitCalloutSize } from "./submitCalloutSize";
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("Submit Callout size Controller", () => {
    it("Calls updateSize", () => {
        const { appObjects, mockUC } = makeTestRig();
        submitCalloutSize(0.7, "MockCallout", appObjects);
        expect(mockUC.submitSize).toHaveBeenCalledWith(0.7);
    });
});
//# sourceMappingURL=submitCalloutSize.test.js.map