From 0b5c03d820f361721f93bedbe8ebf415e801a369 Mon Sep 17 00:00:00 2001 From: Shrenuj Bansal Date: Fri, 17 Jan 2025 16:38:18 -0500 Subject: [PATCH] fix another test Signed-off-by: Shrenuj Bansal --- .../comlink/__tests__/lib/validation/schemas.test.ts | 7 ++++++- indexer/services/comlink/src/lib/validation/schemas.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts b/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts index 9c9ffb74fb..399e7fe15c 100644 --- a/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts +++ b/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts @@ -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 }, diff --git a/indexer/services/comlink/src/lib/validation/schemas.ts b/indexer/services/comlink/src/lib/validation/schemas.ts index 0d2ce534b7..4156a2d1ea 100644 --- a/indexer/services/comlink/src/lib/validation/schemas.ts +++ b/indexer/services/comlink/src/lib/validation/schemas.ts @@ -52,7 +52,7 @@ export const checkAddressSchemaRecord: Record = { custom: { options: isValidAddress, }, - errorMessage: 'address must be a valid dydx address', + errorMessage: 'address must be a valid address', }, };