"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeTestRig = makeTestRig;
const core_1 = require("@vived/core");
const HoverAppObjectUCMock_1 = require("../Mocks/HoverAppObjectUCMock");
const setHoverOnAppObject_1 = require("./setHoverOnAppObject");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const mockUC = new HoverAppObjectUCMock_1.HoverAppObjectUCMock(appObjects.getOrCreate("AppObj1"));
    return { appObjects, mockUC };
}
describe("Set Hover On App Object Controller", () => {
    it("Calls the UC", () => {
        const { appObjects, mockUC } = makeTestRig();
        (0, setHoverOnAppObject_1.setHoverOnAppObject)("AppObj1", true, appObjects);
        expect(mockUC.hoverAppObject).toHaveBeenCalledWith("AppObj1", true);
        (0, setHoverOnAppObject_1.setHoverOnAppObject)("AppObj1", false, appObjects);
        expect(mockUC.hoverAppObject).toHaveBeenCalledWith("AppObj1", false);
    });
});
//# sourceMappingURL=setHoverOnAppObject.test.js.map