Skip to content

Commit

Permalink
Snapshots enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara4994 committed Aug 7, 2023
1 parent 128ad60 commit 32293a4
Show file tree
Hide file tree
Showing 39 changed files with 2,903 additions and 2,527 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ describe('DataTable component tests', () => {
ErrorComponent: undefined
};

render(
const { container } = render(
<MockedProvider mocks={mocks} addTypename={false}>
<DataTable {...props} />
</MockedProvider>
);
expect(screen).toMatchSnapshot();
expect(container).toMatchSnapshot();
});

it('Should render ErrorComponent', async () => {
Expand All @@ -244,13 +244,13 @@ describe('DataTable component tests', () => {
ErrorComponent: undefined
};

render(
const { container } = render(
<MockedProvider mocks={mocks} addTypename={false}>
<DataTable {...props} />
</MockedProvider>
);

expect(screen).toMatchSnapshot();
expect(container).toMatchSnapshot();
});

it('Should render LoadingComponent', async () => {
Expand All @@ -265,13 +265,13 @@ describe('DataTable component tests', () => {
ErrorComponent: undefined
};

render(
const { container } = render(
<MockedProvider mocks={mocks} addTypename={false}>
<DataTable {...props} />
</MockedProvider>
);

expect(screen).toMatchSnapshot();
expect(container).toMatchSnapshot();
});

it('check sorting functionality', async () => {
Expand Down
Loading

0 comments on commit 32293a4

Please sign in to comment.