Skip to content

Commit

Permalink
fix bugs-1
Browse files Browse the repository at this point in the history
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
  • Loading branch information
Qxisylolo committed Aug 23, 2024
1 parent f58a7bf commit d9d1ff6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/public/chrome/ui/header/recent_items.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ jest.spyOn(defaultMockProps.http, 'get').mockImplementation(
);

describe('Recent items', () => {
it('should render base element normally', () => {
const { baseElement } = render(<RecentItems {...defaultMockProps} />);
expect(baseElement).toMatchSnapshot();
});

it('render with empty recent work', () => {
const { getByText, getByTestId } = render(<RecentItems {...defaultMockProps} />);
const mockRecentButton = getByTestId('recentItemsSectionButton');
Expand Down

0 comments on commit d9d1ff6

Please sign in to comment.