const ruleTester = require("../../ruletester");
import * as rule from "./enable-animations";
const valid = [
// Components not in target list should be ignored
"",
"import { AlertGroup } from '@patternfly/react-core'; ",
"import { AlertGroup } from '@patternfly/react-core'; ",
"import { Table } from '@patternfly/react-table';
",
// Component not in target components
"import { Button } from '@patternfly/react-core'; ",
// DualListSelector without isTree should not get hasAnimations
"import { DualListSelector } from '@patternfly/react-core'; ",
// DualListSelector with isTree={false} should not get hasAnimations
"import { DualListSelector } from '@patternfly/react-core'; ",
// DualListSelector with isTree and hasAnimations already present
"import { DualListSelector } from '@patternfly/react-core'; ",
];
const invalid = [
// --- Without includeTable (default) ---
{
code: "import { Table } from '@patternfly/react-table';
",
output: "import { Table } from '@patternfly/react-table';