"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const Entities_1 = require("../Entities");
const ClearModelObjectOverlaysUCMock_1 = require("../Mocks/ClearModelObjectOverlaysUCMock");
const clearActiveObjectsOverlays_1 = require("./clearActiveObjectsOverlays");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const repo = (0, Entities_1.makeChannelModelRepo)(appObjects.getOrCreate("Repo"));
    const uc = new ClearModelObjectOverlaysUCMock_1.ClearModelObjectOverlaysUCMock(appObjects.getOrCreate("aModel"));
    repo.activeModel = "aModel";
    return { appObjects, repo, uc };
}
describe("Clear overlay on all Active Model Objects Controller", () => {
    it("Triggers the UC", () => {
        const { uc, appObjects } = makeTestRig();
        (0, clearActiveObjectsOverlays_1.clearActiveObjectsOverlays)(appObjects);
        expect(uc.clearOverlays).toHaveBeenCalled();
    });
});
//# sourceMappingURL=clearActiveObjectsOverlays.test.js.map