Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Fix jest test
Browse files Browse the repository at this point in the history
  • Loading branch information
smason0 committed Oct 13, 2023
1 parent 06707a3 commit 81a1b26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('FlowsheetDataGrid', () => {
},
];

const dataGrid = wrapper.find('InjectIntl(DataGrid)');
const dataGrid = wrapper.find('ForwardRef');
expect(dataGrid.prop('id')).toEqual('test-terra-flowsheet-data-grid');
expect(dataGrid.prop('ariaLabel')).toEqual('Test Flowsheet Data Grid');
expect(dataGrid.prop('ariaLabelledBy')).toBeUndefined();
Expand Down Expand Up @@ -247,7 +247,7 @@ describe('FlowsheetDataGrid', () => {
/>,
).shallow();

const dataGrid = wrapper.find('InjectIntl(DataGrid)');
const dataGrid = wrapper.find('ForwardRef');
expect(dataGrid.prop('rows')).toEqual(expectedRows);

expect(wrapper).toMatchSnapshot();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`FlowsheetDataGrid renders the row header column as pinned and remaining
<div
className="flowsheet-data-grid-container"
>
<InjectIntl(DataGrid)
<ForwardRef
ariaLabel="Test Flowsheet Data Grid"
columnHeaderHeight="2.5rem"
defaultColumnWidth={200}
Expand Down Expand Up @@ -102,7 +102,7 @@ exports[`FlowsheetDataGrid replaces non-header blank, null, or undefined cell co
<div
className="flowsheet-data-grid-container"
>
<InjectIntl(DataGrid)
<ForwardRef
ariaLabel="Test Flowsheet Data Grid"
columnHeaderHeight="2.5rem"
defaultColumnWidth={200}
Expand Down

0 comments on commit 81a1b26

Please sign in to comment.