Skip to content

Commit

Permalink
Review: Nora
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Apr 3, 2024
1 parent 7136ceb commit 4e0084b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describeTreeView<UseTreeViewExpansionSignature>(
expect(response.getAllItemRoots()).to.have.length(3);
});

it('should use the control state when defined', () => {
it('should use the controlled state when defined', () => {
const response = render({
items: [{ id: '1', children: [{ id: '1.1' }] }, { id: '2' }],
expandedItems: ['1'],
Expand All @@ -45,7 +45,7 @@ describeTreeView<UseTreeViewExpansionSignature>(
expect(response.getItemRoot('1.1')).toBeVisible();
});

it('should use the control state upon the default state when both are defined', () => {
it('should use the controlled state instead of the default state when both are defined', () => {
const response = render({
items: [{ id: '1', children: [{ id: '1.1' }] }, { id: '2' }],
expandedItems: ['1'],
Expand All @@ -55,7 +55,7 @@ describeTreeView<UseTreeViewExpansionSignature>(
expect(response.isItemExpanded('1')).to.equal(true);
});

it('should react to control state update', () => {
it('should react to controlled state update', () => {
const response = render({
items: [{ id: '1', children: [{ id: '1.1' }] }],
expandedItems: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describeTreeView<UseTreeViewSelectionSignature>('useTreeViewSelection plugin', (
expect(response.isItemSelected('1')).to.equal(true);
});

it('should use the control state when defined', () => {
it('should use the controlled state when defined', () => {
const response = render({
items: [{ id: '1' }, { id: '2' }],
selectedItems: ['1'],
Expand All @@ -36,7 +36,7 @@ describeTreeView<UseTreeViewSelectionSignature>('useTreeViewSelection plugin', (
expect(response.isItemSelected('1')).to.equal(true);
});

it('should use the control state upon the default state when both are defined', () => {
it('should use the controlled state instead of the default state when both are defined', () => {
const response = render({
items: [{ id: '1' }, { id: '2' }],
selectedItems: ['1'],
Expand All @@ -46,7 +46,7 @@ describeTreeView<UseTreeViewSelectionSignature>('useTreeViewSelection plugin', (
expect(response.isItemSelected('1')).to.equal(true);
});

it('should react to control state update', () => {
it('should react to controlled state update', () => {
const response = render({
items: [{ id: '1' }, { id: '2' }],
selectedItems: [],
Expand Down Expand Up @@ -441,7 +441,7 @@ describeTreeView<UseTreeViewSelectionSignature>('useTreeViewSelection plugin', (
expect(response.isItemSelected('4')).to.equal(false);
});

it('should not select disabled item that are part of the selected range', () => {
it('should not select disabled items that are part of the selected range', () => {
const response = render({
multiSelect: true,
items: [{ id: '1' }, { id: '2', disabled: true }, { id: '3' }],
Expand Down

0 comments on commit 4e0084b

Please sign in to comment.