"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const submitCalloutSize_1 = require("./submitCalloutSize");
const SetCalloutSizeUcMock_1 = require("../Mocks/SetCalloutSizeUcMock");
const core_1 = require("@vived/core");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const mockUC = new SetCalloutSizeUcMock_1.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();
        (0, submitCalloutSize_1.submitCalloutSize)(0.7, "MockCallout", appObjects);
        expect(mockUC.submitSize).toHaveBeenCalledWith(0.7);
    });
});
//# sourceMappingURL=submitCalloutSize.test.js.map