const ruleTester = require("../../ruletester"); import * as rule from "./drawerHead-warn-updated-markup"; ruleTester.run("drawerHead-warn-updated-markup", rule, { valid: [ { code: ``, }, ], invalid: [ { code: `import { DrawerHead } from '@patternfly/react-core'; `, output: `import { DrawerHead } from '@patternfly/react-core'; `, errors: [ { message: `DrawerPanelBody is no longer rendered internally to DrawerHead. We recommend using these components independent of one another and to not pass DrawerPanelBody to DrawerHead.`, type: "JSXOpeningElement", }, ], }, ], });