Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kpustakhod committed Apr 25, 2023
1 parent f565461 commit 6484dba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/__tests__/MultiSelectDirectoryTree.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ function DirectoryTreeView(props: {

test("Ctrl+A selects all nodes", () => {
const { queryAllByRole } = render(
<DirectoryTreeView
defaultExpandedIds={data.map((x) => x.id)}
/>
<DirectoryTreeView defaultExpandedIds={data.map((x) => x.id)} />
);
const nodes = queryAllByRole("treeitem");
nodes[0].focus();
Expand All @@ -75,9 +73,7 @@ test("Ctrl+A selects all nodes", () => {

test("expect aria-select and aria-multiselectable='true' is set when nodeAction undefined", () => {
const { queryAllByRole } = render(
<DirectoryTreeView
defaultExpandedIds={data.map((x) => x.id)}
/>
<DirectoryTreeView defaultExpandedIds={data.map((x) => x.id)} />
);
const treeNodes = queryAllByRole("tree");
expect(treeNodes[0]).toHaveAttribute("aria-multiselectable", "true");
Expand Down
2 changes: 1 addition & 1 deletion website/docs/examples/MultiSelectCheckboxAsync/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,4 @@ const CheckBoxIcon = ({ variant, ...rest }) => {
}
};

export default MultiSelectCheckboxAsync;
export default MultiSelectCheckboxAsync;

0 comments on commit 6484dba

Please sign in to comment.