"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vitest_1 = require("vitest");
const page_js_1 = require("./page.js");
(0, vitest_1.describe)('page.ts', () => {
    vitest_1.test.each(Object.entries(page_js_1.defaultPageLayouts))('getDefaultLayout snapshot %s', (version, genLayout) => {
        const layout = genLayout();
        (0, vitest_1.expect)(layout).toMatchSnapshot(version);
        // modify the layout and check that it does not affect the next layout
        layout.widgetName = 'NewName';
        const layout2 = genLayout();
        (0, vitest_1.expect)(layout2.widgetName).not.toBe('NewName');
    });
    (0, vitest_1.describe)('v8', () => {
        (0, vitest_1.test)('with sections enabled', () => {
            const v8Layout = page_js_1.defaultPageLayouts['8']();
            (0, vitest_1.expect)(v8Layout.layoutVersion).toBe(2);
        });
    });
});
//# sourceMappingURL=page.test.js.map