"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const ChannelModelRepo_1 = require("../Entities/ChannelModelRepo");
const UnhideAllChannelModelObjectsUCMock_1 = require("../Mocks/UnhideAllChannelModelObjectsUCMock");
const unhideAllActiveObjects_1 = require("./unhideAllActiveObjects");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const repo = (0, ChannelModelRepo_1.makeChannelModelRepo)(appObjects.getOrCreate("Repo"));
    const uc = new UnhideAllChannelModelObjectsUCMock_1.UnhideAllChannelModelObjectsUCMock(appObjects.getOrCreate("aModel"));
    repo.activeModel = "aModel";
    return { appObjects, repo, uc };
}
describe("Unhides all Active Model Objects Controller", () => {
    it("Triggers the UC", () => {
        const { uc, appObjects } = makeTestRig();
        (0, unhideAllActiveObjects_1.unhideAllActiveObjects)(appObjects);
        expect(uc.unhideAll).toHaveBeenCalled();
    });
});
//# sourceMappingURL=unhideAllActiveObjects.test.js.map