"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const InspectorTabEntity_1 = require("../Entities/InspectorTabEntity");
const clickSetInspectorTabIndex_1 = require("./clickSetInspectorTabIndex");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const entity = (0, InspectorTabEntity_1.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");
        (0, clickSetInspectorTabIndex_1.clickSetInspectorTabIndex)(1, appObjects);
        expect(spy).toHaveBeenCalledWith(1);
    });
});
//# sourceMappingURL=clickSetInspectorTabIndex.test.js.map