Skip to content

Commit

Permalink
fixup! fix: registry index URL
Browse files Browse the repository at this point in the history
  • Loading branch information
olexii4 committed Sep 28, 2023
1 parent 31d1d5e commit e97b212
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ describe('fetch registry metadata', () => {
);
expect(mockSessionStorageServiceUpdate).not.toHaveBeenCalled();
expect(errorMessage).toEqual(
'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returns type is not array.',
'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returned value is not array.',
);
expect(console.error).toBeCalledWith(
'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returns type is not array.',
'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returned value is not array.',
);
});

Expand Down Expand Up @@ -333,10 +333,10 @@ describe('fetch registry metadata', () => {
expect(mockFetchData).toBeCalledWith('https://registry.devfile.io/index');
expect(mockSessionStorageServiceUpdate).not.toHaveBeenCalled();
expect(errorMessage).toEqual(
'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returns type is not array.',
'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returned value is not array.',
);
expect(console.error).toBeCalledWith(
'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returns type is not array.',
'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returned value is not array.',
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class DevfileMetaDataIsNotArrayError extends Error {
public location: string;

constructor(location: string) {
super('Returns type is not array.');
super('Returned value is not array.');
this.location = location;
}
}
Expand Down

0 comments on commit e97b212

Please sign in to comment.