const ruleTester = require("../../ruletester");
import * as rule from "./pageSection-warn-variantClasses-applied";
ruleTester.run("pageSection-warn-variantClasses-applied", rule, {
valid: [
{
code: ``,
},
{
code: `import { PageSection } from '@patternfly/react-core'; `,
},
],
invalid: [
{
code: `import { PageSection } from '@patternfly/react-core'; `,
output: `import { PageSection } from '@patternfly/react-core'; `,
errors: [
{
message: `Classes from the \`variant\` prop will now only be applied to PageSection when the \`type\` prop has a value of "default".`,
type: "JSXOpeningElement",
},
],
},
],
});