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