Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(catalog-provider): Fix broken test #3

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/ui/src/providers/catalog.provider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('CatalogLoaderProvider', () => {
`${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/camel-catalog-aggregate-dataformats.json`,
);
expect(fetchFileMock).toHaveBeenCalledWith(`${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/kamelets-aggregate.json`);
expect(fetchFileMock).toHaveBeenCalledWith(`${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/kamelets-boundaries.json`);
expect(fetchFileMock).toHaveBeenCalledWith(`${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/kamelet-boundaries.json`);
});

it('should set loading to false after fetching the catalogs', async () => {
Expand Down Expand Up @@ -165,7 +165,7 @@ describe('CatalogLoaderProvider', () => {
uri: `${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/kamelets-aggregate.json`,
});
expect(setCatalogKeySpy).toHaveBeenCalledWith(CatalogKind.KameletBoundary, {
uri: `${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/kamelets-boundaries.json`,
uri: `${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/kamelet-boundaries.json`,
});
});
});
2 changes: 1 addition & 1 deletion packages/ui/src/providers/schemas.provider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('SchemasLoaderProvider', () => {
expect(fetchMock).toHaveBeenCalledWith(`${CatalogSchemaLoader.DEFAULT_CATALOG_PATH}/index.json`);
});

it('should fetch the subsequent catalog files', async () => {
it('should fetch the subsequent schemas files', async () => {
await act(async () => {
render(
<SchemasLoaderProvider catalogUrl={CatalogSchemaLoader.DEFAULT_CATALOG_PATH}>
Expand Down
Loading