/** * Tests for ResponsiveContainer component */ const React = require("react"); describe("ResponsiveContainer Component", () => { test("should have proper component structure", () => { const ResponsiveContainer = require("../../../src/tui/components/common/ResponsiveContainer.jsx"); expect(typeof ResponsiveContainer).toBe("function"); }); test("should handle component type prop", () => { const componentTypes = [ "menu", "form", "progress", "logs", "sidebar", "default", ]; componentTypes.forEach((type) => { expect(typeof type).toBe("string"); expect(type.length).toBeGreaterThan(0); }); }); test("should handle hideOnSmall prop", () => { const hideOnSmallOptions = [true, false]; hideOnSmallOptions.forEach((option) => { expect(typeof option).toBe("boolean"); }); }); test("should handle padding prop", () => { const paddingOptions = [true, false]; paddingOptions.forEach((option) => { expect(typeof option).toBe("boolean"); }); }); });