Just a whole lot of crap
This commit is contained in:
45
tests/tui/components/ResponsiveContainer.test.js
Normal file
45
tests/tui/components/ResponsiveContainer.test.js
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* 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");
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user