From cfd8c7317c544536e8d09213224e7c7e26dd493d Mon Sep 17 00:00:00 2001 From: derekpierre Date: Thu, 19 Dec 2024 12:00:20 -0500 Subject: [PATCH] Fix linting. --- packages/taco/src/conditions/schemas/rpc.ts | 5 +---- packages/taco/test/conditions/base/condition.test.ts | 4 +--- packages/taco/test/conditions/compound-condition.test.ts | 7 ++++++- packages/taco/test/conditions/sequential.test.ts | 7 ++++++- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/packages/taco/src/conditions/schemas/rpc.ts b/packages/taco/src/conditions/schemas/rpc.ts index e409c999..caac5c78 100644 --- a/packages/taco/src/conditions/schemas/rpc.ts +++ b/packages/taco/src/conditions/schemas/rpc.ts @@ -1,10 +1,7 @@ import { BlockIdentifierSchema, EthAddressSchema } from '@nucypher/shared'; import { z } from 'zod'; -import { - baseConditionSchema, - UserAddressSchema, -} from './common'; +import { baseConditionSchema, UserAddressSchema } from './common'; import { contextParamSchema } from './context'; import { returnValueTestSchema } from './return-value-test'; diff --git a/packages/taco/test/conditions/base/condition.test.ts b/packages/taco/test/conditions/base/condition.test.ts index e1473308..a45bac13 100644 --- a/packages/taco/test/conditions/base/condition.test.ts +++ b/packages/taco/test/conditions/base/condition.test.ts @@ -40,9 +40,7 @@ describe('validation', () => { expect(result.data).toBeUndefined(); expect(result.error?.format()).toMatchObject({ chain: { - _errors: [ - "Expected number, received string", - ], + _errors: ['Expected number, received string'], }, }); }); diff --git a/packages/taco/test/conditions/compound-condition.test.ts b/packages/taco/test/conditions/compound-condition.test.ts index 96a6448e..dabd1e3f 100644 --- a/packages/taco/test/conditions/compound-condition.test.ts +++ b/packages/taco/test/conditions/compound-condition.test.ts @@ -247,7 +247,12 @@ describe('validation', () => { const multichainCondition: CompoundConditionProps = { conditionType: CompoundConditionType, operator: 'and', - operands: [ChainId.ETHEREUM_MAINNET, ChainId.POLYGON, ChainId.SEPOLIA, ChainId.AMOY].map((chain) => ({ + operands: [ + ChainId.ETHEREUM_MAINNET, + ChainId.POLYGON, + ChainId.SEPOLIA, + ChainId.AMOY, + ].map((chain) => ({ ...testRpcConditionObj, chain, })), diff --git a/packages/taco/test/conditions/sequential.test.ts b/packages/taco/test/conditions/sequential.test.ts index 85c1cdd3..0c08b2b9 100644 --- a/packages/taco/test/conditions/sequential.test.ts +++ b/packages/taco/test/conditions/sequential.test.ts @@ -223,7 +223,12 @@ describe('validation', () => { it('accepts on a valid multichain condition schema', () => { const multichainCondition: SequentialConditionProps = { conditionType: SequentialConditionType, - conditionVariables: [ChainId.AMOY, ChainId.POLYGON, ChainId.ETHEREUM_MAINNET, ChainId.SEPOLIA].map((chain) => ({ + conditionVariables: [ + ChainId.AMOY, + ChainId.POLYGON, + ChainId.ETHEREUM_MAINNET, + ChainId.SEPOLIA, + ].map((chain) => ({ varName: `chain_${chain}`, condition: { ...testRpcConditionObj,