"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const MockShowChallengeHelpUC_1 = require("../Mocks/MockShowChallengeHelpUC");
const showChallengeHelp_1 = require("./showChallengeHelp");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const mockUC = (0, MockShowChallengeHelpUC_1.makeMockShowChallengeHelpUC)(appObjects);
    return { appObjects, mockUC };
}
describe("Click Set Inspector", () => {
    it("Calls the UC", () => {
        const { appObjects, mockUC } = makeTestRig();
        (0, showChallengeHelp_1.showChallengeHelp)(appObjects);
        expect(mockUC.showChallengeHelp).toHaveBeenCalledWith();
    });
    it("Warns if there is no UC", () => {
        const { appObjects, mockUC } = makeTestRig();
        mockUC.dispose();
        appObjects.submitWarning = jest.fn();
        (0, showChallengeHelp_1.showChallengeHelp)(appObjects);
        expect(appObjects.submitWarning).toHaveBeenCalled();
    });
});
//# sourceMappingURL=showChallengeHelp.test.js.map