Component cleanup

This commit is contained in:
adilallo
2026-04-29 07:20:16 -06:00
parent 252848eba9
commit e6127f1a3f
267 changed files with 2087 additions and 2196 deletions
+37
View File
@@ -0,0 +1,37 @@
import { describe } from "vitest";
import {
componentTestSuite,
type ComponentTestSuiteConfig,
} from "../utils/componentTestSuite";
import CommunityRule from "../../app/components/type/CommunityRule";
type Props = React.ComponentProps<typeof CommunityRule>;
const sampleSections = [
{
categoryName: "Decision making",
entries: [
{
title: "How proposals pass",
body: "Important decisions require unanimous agreement.",
},
],
},
];
const config: ComponentTestSuiteConfig<Props> = {
component: CommunityRule,
name: "CommunityRule",
props: {
sections: sampleSections,
} as Props,
requiredProps: ["sections"],
testCases: {
renders: true,
accessibility: true,
},
};
describe("CommunityRule", () => {
componentTestSuite<Props>(config);
});