Skip to content

Commit

Permalink
chore(charts): added test for js
Browse files Browse the repository at this point in the history
  • Loading branch information
dlabrecq committed Oct 3, 2024
1 parent 9e4476c commit 8a04a18
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ specifiersToMove.forEach((specifier) => {
[{ message: errorMessage, type: "ImportDeclaration" }]
)
);
invalidTests.push(
createInvalidTest(
`import { ${specifier} } from '@patternfly/react-charts/dist/js/components/index.js';`,
`import {\n\t${specifier}\n} from '@patternfly/react-charts/dist/js/victory/components/index.js';`,
[{ message: errorMessage, type: "ImportDeclaration" }]
)
);
});

ruleTester.run("chartImport-moved", rule, {
Expand Down

0 comments on commit 8a04a18

Please sign in to comment.