import { makeAppObjectRepo } from "@vived/core";
import { makeInspectorTabEntity } from "../Entities/InspectorTabEntity";
import { clickSetInspectorTabIndex } from "./clickSetInspectorTabIndex";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const entity = makeInspectorTabEntity(appObjects.getOrCreate("ID"));
    return { appObjects, entity };
}
describe("Click Set Inspector Tab Index", () => {
    it("Calls the UC", () => {
        const { appObjects, entity } = makeTestRig();
        const spy = jest.spyOn(entity, "activeTabIndex", "set");
        clickSetInspectorTabIndex(1, appObjects);
        expect(spy).toHaveBeenCalledWith(1);
    });
});
//# sourceMappingURL=clickSetInspectorTabIndex.test.js.map