"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const UseCases_1 = require("../UseCases");
const setupHoverLabel_1 = require("./setupHoverLabel");
describe("Setup Hover Label", () => {
    it("Sets up Try Show UC by default", () => {
        const appObject = (0, core_1.makeAppObjectRepo)();
        const hoverLabelAO = (0, setupHoverLabel_1.setupHoverLabel)(appObject).appObject;
        expect(hoverLabelAO.hasComponent(UseCases_1.TryShowHoverLabel.type)).toBe(true);
    });
    it("Uses the try show factory if it is passed in", () => {
        const appObject = (0, core_1.makeAppObjectRepo)();
        const tryShowFactory = jest.fn();
        const hoverLabelAO = (0, setupHoverLabel_1.setupHoverLabel)(appObject, {
            tryShowFactory,
        }).appObject;
        expect(tryShowFactory).toHaveBeenCalledWith(hoverLabelAO);
        expect(hoverLabelAO.hasComponent(UseCases_1.TryShowHoverLabel.type)).toBe(false); // Proves the default factory was not called
    });
});
//# sourceMappingURL=setupHoverLabel.test.js.map