Skip to content

Commit

Permalink
fix another test
Browse files Browse the repository at this point in the history
Signed-off-by: Shrenuj Bansal <[email protected]>
  • Loading branch information
shrenujb committed Jan 17, 2025
1 parent e92cd6e commit 0b5c03d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ describe('schemas', () => {
const defaultAddress: string = testConstants.defaultSubaccount.address;
describe('CheckSubaccountSchema', () => {
it.each([
['missing address', { subaccountNumber: defaultSubaccountNumber }, 'address', 'Invalid value'],
[
'missingaddress',
{ subaccountNumber: defaultSubaccountNumber },
'address',
'address must be a valid dydx address',
],
[
'missing subaccountNumber',
{ address: defaultAddress },
Expand Down
2 changes: 1 addition & 1 deletion indexer/services/comlink/src/lib/validation/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const checkAddressSchemaRecord: Record<string, ParamSchema> = {
custom: {
options: isValidAddress,
},
errorMessage: 'address must be a valid dydx address',
errorMessage: 'address must be a valid address',
},
};

Expand Down

0 comments on commit 0b5c03d

Please sign in to comment.