import { makeAppObjectRepo } from "@vived/core";
import { makeChannelModelRepo } from "../Entities";
import { ClearModelObjectOverlaysUCMock } from "../Mocks/ClearModelObjectOverlaysUCMock";
import { clearActiveObjectsOverlays } from "./clearActiveObjectsOverlays";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const repo = makeChannelModelRepo(appObjects.getOrCreate("Repo"));
    const uc = new 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();
        clearActiveObjectsOverlays(appObjects);
        expect(uc.clearOverlays).toHaveBeenCalled();
    });
});
//# sourceMappingURL=clearActiveObjectsOverlays.test.js.map