import { makeAppObjectRepo } from "@vived/core";
import { HoverAppObjectUCMock } from "../Mocks/HoverAppObjectUCMock";
import { setHoverOnAppObject } from "./setHoverOnAppObject";
export function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const mockUC = new HoverAppObjectUCMock(appObjects.getOrCreate("AppObj1"));
    return { appObjects, mockUC };
}
describe("Set Hover On App Object Controller", () => {
    it("Calls the UC", () => {
        const { appObjects, mockUC } = makeTestRig();
        setHoverOnAppObject("AppObj1", true, appObjects);
        expect(mockUC.hoverAppObject).toHaveBeenCalledWith("AppObj1", true);
        setHoverOnAppObject("AppObj1", false, appObjects);
        expect(mockUC.hoverAppObject).toHaveBeenCalledWith("AppObj1", false);
    });
});
//# sourceMappingURL=setHoverOnAppObject.test.js.map