Update plugins/catalog/src/components/CatalogExportButton/CatalogExportButton.test.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: 1337 <19777147+the-serious-programmer@users.noreply.github.com>
This commit is contained in:
1337
2026-04-18 14:32:19 +02:00
committed by GitHub
parent e98fa92ab5
commit c8a49c6c3b
@@ -204,17 +204,18 @@ describe('CatalogExportButton', () => {
await userEvent.click(screen.getByRole('button', { name: /Confirm/i }));
await waitFor(() => {
expect(mockExportStream).toHaveBeenCalledWith({
exportFormat: 'json',
filename: 'catalog-export.json',
columns: [
{ entityFilterKey: 'metadata.name', title: 'Name' },
{ entityFilterKey: 'spec.type', title: 'Type' },
{ entityFilterKey: 'spec.owner', title: 'Owner' },
{ entityFilterKey: 'metadata.description', title: 'Description' },
],
streamRequest: undefined,
});
expect(mockExportStream).toHaveBeenCalledWith(
expect.objectContaining({
exportFormat: 'json',
filename: 'catalog-export.json',
columns: [
{ entityFilterKey: 'metadata.name', title: 'Name' },
{ entityFilterKey: 'spec.type', title: 'Type' },
{ entityFilterKey: 'spec.owner', title: 'Owner' },
{ entityFilterKey: 'metadata.description', title: 'Description' },
],
}),
);
});
});