"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const setupStandardFramedScreen_1 = require("./setupStandardFramedScreen");
describe("setupStandardFramedScreen", () => {
    it("Defaults to adding the StandardLayoutUC", () => {
        const appObjects = (0, core_1.makeAppObjectRepo)();
        const ao = (0, setupStandardFramedScreen_1.setupStandardFramedScreen)(appObjects);
        expect(ao.hasComponent("StandardLayoutUC")).toBe(true);
    });
    it("Does not add the StandardLayoutUC if the option is set to true", () => {
        const appObjects = (0, core_1.makeAppObjectRepo)();
        const ao = (0, setupStandardFramedScreen_1.setupStandardFramedScreen)(appObjects, {
            dontSetupLayoutHook: true,
        });
        expect(ao.hasComponent("StandardLayoutUC")).toBe(false);
    });
    it("Adds the StandardLayoutUC if the option is set to false", () => {
        const appObjects = (0, core_1.makeAppObjectRepo)();
        const ao = (0, setupStandardFramedScreen_1.setupStandardFramedScreen)(appObjects, {
            dontSetupLayoutHook: false,
        });
        expect(ao.hasComponent("StandardLayoutUC")).toBe(true);
    });
    it("Adds the StandardLayoutUC if the option is not set", () => {
        const appObjects = (0, core_1.makeAppObjectRepo)();
        const ao = (0, setupStandardFramedScreen_1.setupStandardFramedScreen)(appObjects, {});
        expect(ao.hasComponent("StandardLayoutUC")).toBe(true);
    });
});
//# sourceMappingURL=setupStandardFramedScreen.test.js.map