From e83a2c8b216b421c48d7a9d4b561c57d4b8f4a4a Mon Sep 17 00:00:00 2001 From: Muhammad-Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> Date: Wed, 21 Jun 2023 14:08:35 +0200 Subject: [PATCH] fix lint --- packages/web3-core/src/web3_subscription_manager.ts | 8 ++++---- packages/web3-eth/test/unit/web3_eth_subscription.test.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/web3-core/src/web3_subscription_manager.ts b/packages/web3-core/src/web3_subscription_manager.ts index 3e12ad49620..8e76498e3c2 100644 --- a/packages/web3-core/src/web3_subscription_manager.ts +++ b/packages/web3-core/src/web3_subscription_manager.ts @@ -54,8 +54,8 @@ export class Web3SubscriptionManager< /** * - * @param requestManager - * @param registeredSubscriptions + * @param - requestManager + * @param - registeredSubscriptions * * @example * ```ts @@ -143,8 +143,8 @@ export class Web3SubscriptionManager< * Will create a new subscription * * @param name - The subscription you want to subscribe to - * @param args (optional) - Optional additional parameters, depending on the subscription type - * @param returnFormat ({@link DataFormat} defaults to {@link DEFAULT_RETURN_FORMAT}) - Specifies how the return data from the call should be formatted. + * @param args - Optional additional parameters, depending on the subscription type + * @param returnFormat- ({@link DataFormat} defaults to {@link DEFAULT_RETURN_FORMAT}) - Specifies how the return data from the call should be formatted. * * Will subscribe to a specific topic (note: name) * @returns The subscription object diff --git a/packages/web3-eth/test/unit/web3_eth_subscription.test.ts b/packages/web3-eth/test/unit/web3_eth_subscription.test.ts index 069b8dcdb11..edbf28d215f 100644 --- a/packages/web3-eth/test/unit/web3_eth_subscription.test.ts +++ b/packages/web3-eth/test/unit/web3_eth_subscription.test.ts @@ -49,7 +49,7 @@ describe('Web3Eth subscribe and clear subscriptions', () => { const requestManager = { send: jest.fn(), on: jest.fn(), provider: { on: jest.fn() } }; const subManager = new Web3SubscriptionManager(requestManager as any, undefined as any); - const dummyLogs = new LogsSubscription({}, subManager); + const dummyLogs = new LogsSubscription({}, { subscriptionManager: subManager }); jest.spyOn(subManager, 'subscribe').mockResolvedValueOnce(dummyLogs); jest.spyOn(rpcMethodWrappers, 'getLogs').mockResolvedValueOnce(mockGetLogsRpcResponse);