"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const updateCalloutSize_1 = require("./updateCalloutSize");
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("Update Callout Sise Controller", () => {
    it("Calls updateSize", () => {
        const { appObjects, mockUC } = makeTestRig();
        (0, updateCalloutSize_1.updateCalloutSize)(0.7, "MockCallout", appObjects);
        expect(mockUC.updateSize).toHaveBeenCalledWith(0.7);
    });
});
//# sourceMappingURL=updateCalloutSize.test.js.map