Skip to content

Commit

Permalink
fix frontend test
Browse files Browse the repository at this point in the history
Signed-off-by: Stephanie <[email protected]>
  • Loading branch information
yangcao77 committed Nov 23, 2021
1 parent 2fefed0 commit c7dd137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export const expectedCatalogItems: CatalogItem[] = [
'/import?importType=devfile&formType=sample&devfileName=nodejs-basic&gitRepo=https://github.com/nodeshift-starters/devfile-sample.git',
},
icon: { url: 'trimmed' },
provider: 'Red Hat',
},
{
uid: 'code-with-quarkus',
Expand All @@ -87,7 +86,6 @@ export const expectedCatalogItems: CatalogItem[] = [
'/import?importType=devfile&formType=sample&devfileName=code-with-quarkus&gitRepo=https://github.com/devfile-samples/devfile-sample-code-with-quarkus.git',
},
icon: { url: 'trimmed' },
provider: 'Red Hat',
},
{
uid: 'java-springboot-basic',
Expand All @@ -101,7 +99,6 @@ export const expectedCatalogItems: CatalogItem[] = [
'/import?importType=devfile&formType=sample&devfileName=java-springboot-basic&gitRepo=https://github.com/devfile-samples/devfile-sample-java-springboot-basic.git',
},
icon: { url: 'trimmed' },
provider: 'Red Hat',
},
{
uid: 'python-basic',
Expand All @@ -115,6 +112,5 @@ export const expectedCatalogItems: CatalogItem[] = [
'/import?importType=devfile&formType=sample&devfileName=python-basic&gitRepo=https://github.com/devfile-samples/devfile-sample-python-basic.git',
},
icon: { url: 'trimmed' },
provider: 'Red Hat',
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('useDevfileSamples:', () => {

expect(getMock).toHaveBeenCalledTimes(1);
expect(getMock).toHaveBeenLastCalledWith(
'/api/devfile/samples?registry=hhttps://registry.stage.devfile.io',
'/api/devfile/samples?registry=https://registry.devfile.io',
);

expect(result.current).toEqual([[], false, undefined]);
Expand All @@ -42,7 +42,7 @@ describe('useDevfileSamples:', () => {

expect(getMock).toHaveBeenCalledTimes(1);
expect(getMock).toHaveBeenLastCalledWith(
'/api/devfile/samples?registry=https://registry.stage.devfile.io',
'/api/devfile/samples?registry=https://registry.devfile.io',
);

expect(result.current).toEqual([[], false, undefined]);
Expand Down

0 comments on commit c7dd137

Please sign in to comment.