Skip to content

Commit

Permalink
fix some tests
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 d49bf25 commit e92cd6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ describe('pnlTicks-controller#V4', () => {
it('Get /historical-pnl with non-existent address and subaccount number returns 404', async () => {
const response: request.Response = await sendRequest({
type: RequestMethod.GET,
path: '/v4/historical-pnl?address=invalid_address&subaccountNumber=100',
path: '/v4/historical-pnl?address=invalidaddress&subaccountNumber=100',
expectedStatus: 404,
});

expect(response.body).toEqual({
errors: [
{
msg: 'No subaccount found with address invalid_address and subaccountNumber 100',
msg: 'No subaccount found with address invalidaddress and subaccountNumber 100',
},
],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,14 @@ describe('transfers-controller#V4', () => {
it('Get /transfers with non-existent address and subaccount number returns 404', async () => {
const response: request.Response = await sendRequest({
type: RequestMethod.GET,
path: '/v4/transfers?address=invalid_address&subaccountNumber=100',
path: '/v4/transfers?address=invalidaddress&subaccountNumber=100',
expectedStatus: 404,
});

expect(response.body).toEqual({
errors: [
{
msg: 'No subaccount found with address invalid_address and subaccountNumber 100',
msg: 'No subaccount found with address invalidaddress and subaccountNumber 100',
},
],
});
Expand Down Expand Up @@ -981,14 +981,14 @@ describe('transfers-controller#V4', () => {
it('Get /transfers/parentSubaccountNumber with non-existent address and subaccount number returns 404', async () => {
const response: request.Response = await sendRequest({
type: RequestMethod.GET,
path: '/v4/transfers/parentSubaccountNumber?address=invalid_address&parentSubaccountNumber=100',
path: '/v4/transfers/parentSubaccountNumber?address=invalidaddress&parentSubaccountNumber=100',
expectedStatus: 404,
});

expect(response.body).toEqual({
errors: [
{
msg: 'No subaccount found with address invalid_address and parentSubaccountNumber 100',
msg: 'No subaccount found with address invalidaddress and parentSubaccountNumber 100',
},
],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { complianceProvider } from '../../../helpers/compliance/compliance-clien
import { create4xxResponse, handleControllerError } from '../../../lib/helpers';
import { rateLimiterMiddleware } from '../../../lib/rate-limit';
import { getIpAddr } from '../../../lib/utils';
import { CheckAddressSchema } from '../../../lib/validation/schemas';
import { handleValidationErrors } from '../../../request-helpers/error-handler';
import ExportResponseCodeStats from '../../../request-helpers/export-response-code-stats';
import { ComplianceRequest, ComplianceResponse } from '../../../types';
Expand Down
2 changes: 0 additions & 2 deletions indexer/services/comlink/src/lib/validation/schemas.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as console from 'node:console';

import { isValidLanguageCode } from '@dydxprotocol-indexer/notifications';
import {
perpetualMarketRefresher,
Expand Down

0 comments on commit e92cd6e

Please sign in to comment.