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:
@@ -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' },
|
||||
],
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user