Skip to content

Commit

Permalink
remove duplicate snapshot validation
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Aug 29, 2023
1 parent b85d879 commit c506258
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 57 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions src/plugins/management_overview/public/application.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ describe('Overview page rendering', () => {
});

it('should render normally when no overview app', () => {
const { container, queryByText } = renderOverviewPage(new Map<string, PublicAppInfo>());
expect(container.firstChild).toMatchSnapshot();
const { queryByText } = renderOverviewPage(new Map<string, PublicAppInfo>());
expect(queryByText('Overview')).not.toBeNull();
});

Expand All @@ -76,11 +75,7 @@ describe('Overview page rendering', () => {
order: 0,
},
];
const { container, queryByText } = renderOverviewPage(
new Map<string, PublicAppInfo>(),
overviewApps
);
expect(container.firstChild).toMatchSnapshot();
const { queryByText } = renderOverviewPage(new Map<string, PublicAppInfo>(), overviewApps);
expect(queryByText('Dev Tools')).toBeNull();
});

Expand Down

0 comments on commit c506258

Please sign in to comment.