import { makeAppObjectRepo } from "@vived/core";
import { makeMockShowChallengeHelpUC } from "../Mocks/MockShowChallengeHelpUC";
import { showChallengeHelp } from "./showChallengeHelp";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const mockUC = makeMockShowChallengeHelpUC(appObjects);
    return { appObjects, mockUC };
}
describe("Click Set Inspector", () => {
    it("Calls the UC", () => {
        const { appObjects, mockUC } = makeTestRig();
        showChallengeHelp(appObjects);
        expect(mockUC.showChallengeHelp).toHaveBeenCalledWith();
    });
    it("Warns if there is no UC", () => {
        const { appObjects, mockUC } = makeTestRig();
        mockUC.dispose();
        appObjects.submitWarning = jest.fn();
        showChallengeHelp(appObjects);
        expect(appObjects.submitWarning).toHaveBeenCalled();
    });
});
//# sourceMappingURL=showChallengeHelp.test.js.map