Skip to content

Commit

Permalink
fixed error test
Browse files Browse the repository at this point in the history
  • Loading branch information
bee344 committed Feb 6, 2024
1 parent 007d420 commit 472c2bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/registry/parseRegistry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ describe('parseRegistry', () => {
};
const err = () => parseRegistry(reg as ChainInfoRegistry<ChainInfoKeys>, opts);

expect(err).toThrow('SpecNameNotProvided');
expect(err).toThrow('A specName must be provided when adding a new chain');
});
it('Should correctly add a new foreignAsset ignoring the specName', () => {
const specName = 'prorrata';
Expand Down
2 changes: 1 addition & 1 deletion src/registry/parseRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const updateRegistry = (
};
for (const id of Object.keys(injectedChain)) {
if (!chain[id] && !injectedChain[id].specName) {
throw new BaseError('<error_message>', BaseErrorsEnum.SpecNameNotProvided);
throw new BaseError('A specName must be provided when adding a new chain', BaseErrorsEnum.SpecNameNotProvided);
} else if (!chain[id]) {
Object.assign(buffer, injectedChain[id]);
Object.assign(injectedChain[id], buffer);
Expand Down

0 comments on commit 472c2bc

Please sign in to comment.