From b00721c9395264eca0fb38793fdabe11d4f97a84 Mon Sep 17 00:00:00 2001 From: Harry Wray Date: Fri, 22 Nov 2024 14:13:15 -0500 Subject: [PATCH] Lint --- .../handlers/update-perpetual-handler.test.ts | 6 +-- .../helpers/indexer-proto-helpers.ts | 38 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts b/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts index fe21ef73ad..9fdbc43acb 100644 --- a/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts +++ b/indexer/services/ender/__tests__/handlers/update-perpetual-handler.test.ts @@ -117,9 +117,9 @@ describe('update-perpetual-handler', () => { await onMessage(kafkaMessage); const perpetualMarket: - PerpetualMarketFromDatabase | undefined = await PerpetualMarketTable.findById( - event.id.toString(), - ); + PerpetualMarketFromDatabase | undefined = await PerpetualMarketTable.findById( + event.id.toString(), + ); expect(perpetualMarket).toEqual(expect.objectContaining({ id: event.id.toString(), diff --git a/indexer/services/ender/__tests__/helpers/indexer-proto-helpers.ts b/indexer/services/ender/__tests__/helpers/indexer-proto-helpers.ts index e11b02a5fa..d0fe5ea32e 100644 --- a/indexer/services/ender/__tests__/helpers/indexer-proto-helpers.ts +++ b/indexer/services/ender/__tests__/helpers/indexer-proto-helpers.ts @@ -596,7 +596,7 @@ export async function expectNoOrdersExistForSubaccountClobPairId({ clobPairId: string, }): Promise { const ordersFromDatabase: OrderFromDatabase[] = await - OrderTable.findBySubaccountIdAndClobPair(subaccountId, clobPairId); + OrderTable.findBySubaccountIdAndClobPair(subaccountId, clobPairId); expect(ordersFromDatabase).toHaveLength(0); } @@ -637,7 +637,7 @@ export async function expectOrderInDatabase({ }): Promise { const orderId: string = OrderTable.uuid(subaccountId, clientId, clobPairId, orderFlags); const orderFromDatabase: OrderFromDatabase | undefined = await - OrderTable.findById(orderId); + OrderTable.findById(orderId); expect(orderFromDatabase).not.toEqual(undefined); expect(orderFromDatabase).toEqual(expect.objectContaining({ @@ -675,12 +675,12 @@ export async function expectFillSubaccountKafkaMessageFromLiquidationEvent( fill, position, ]: [ - FillFromDatabase | undefined, - PerpetualPositionFromDatabase | undefined, - ] = await Promise.all([ - FillTable.findById(fillId), - PerpetualPositionTable.findById(positionId), - ]); + FillFromDatabase | undefined, + PerpetualPositionFromDatabase | undefined, + ] = await Promise.all([ + FillTable.findById(fillId), + PerpetualPositionTable.findById(positionId), + ]); expect(fill).toBeDefined(); expect(position).toBeDefined(); @@ -790,14 +790,14 @@ export async function expectOrderFillAndPositionSubaccountKafkaMessageFromIds( fill, position, ]: [ - OrderFromDatabase | undefined, - FillFromDatabase | undefined, - PerpetualPositionFromDatabase | undefined, - ] = await Promise.all([ - OrderTable.findById(orderId), - FillTable.findById(fillId), - PerpetualPositionTable.findById(positionId), - ]); + OrderFromDatabase | undefined, + FillFromDatabase | undefined, + PerpetualPositionFromDatabase | undefined, + ] = await Promise.all([ + OrderTable.findById(orderId), + FillTable.findById(fillId), + PerpetualPositionTable.findById(positionId), + ]); const perpetualMarket: PerpetualMarketFromDatabase | undefined = await PerpetualMarketTable .findById( @@ -896,9 +896,9 @@ export async function expectPerpetualPosition( }, ) { const perpetualPosition: - PerpetualPositionFromDatabase | undefined = await PerpetualPositionTable.findById( - perpetualPositionId, - ); + PerpetualPositionFromDatabase | undefined = await PerpetualPositionTable.findById( + perpetualPositionId, + ); expect(perpetualPosition).toBeDefined();