Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hwray committed Nov 22, 2024
1 parent 038d3ff commit b00721c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
38 changes: 19 additions & 19 deletions indexer/services/ender/__tests__/helpers/indexer-proto-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ export async function expectNoOrdersExistForSubaccountClobPairId({
clobPairId: string,
}): Promise<void> {
const ordersFromDatabase: OrderFromDatabase[] = await
OrderTable.findBySubaccountIdAndClobPair(subaccountId, clobPairId);
OrderTable.findBySubaccountIdAndClobPair(subaccountId, clobPairId);
expect(ordersFromDatabase).toHaveLength(0);
}

Expand Down Expand Up @@ -637,7 +637,7 @@ export async function expectOrderInDatabase({
}): Promise<void> {
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({
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit b00721c

Please sign in to comment.