"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const InspectorTabEntity_1 = require("../Entities/InspectorTabEntity");
const clickSetInspectorTab_1 = require("./clickSetInspectorTab");
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", () => {
    it("Calls the UC", () => {
        const { appObjects, entity } = makeTestRig();
        const spy = jest.spyOn(entity, "activeTab", "set");
        (0, clickSetInspectorTab_1.clickSetInspectorTab)("someTab", appObjects);
        expect(spy).toHaveBeenCalledWith("someTab");
    });
});
//# sourceMappingURL=clickSetInspectorTab.test.js.map