import { describe, expect, it } from 'vitest';
import { companionDimensionKeys } from '../../views/page-editor/SectionInspector.js';
describe('companionDimensionKeys', () => {
    it('maps a *Url field to *Width / *Height (feature, hero)', () => {
        expect(companionDimensionKeys('imageUrl')).toEqual({
            width: 'imageWidth',
            height: 'imageHeight',
        });
        expect(companionDimensionKeys('backgroundUrl')).toEqual({
            width: 'backgroundWidth',
            height: 'backgroundHeight',
        });
    });
    it('maps a gallery-row `url` field to plain width / height', () => {
        expect(companionDimensionKeys('url')).toEqual({ width: 'width', height: 'height' });
    });
    it('falls back to <key>Width / <key>Height for other keys', () => {
        expect(companionDimensionKeys('photo')).toEqual({ width: 'photoWidth', height: 'photoHeight' });
    });
});
//# sourceMappingURL=section-inspector-media.test.js.map