Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Jun 21, 2023
1 parent ec1373c commit e83a2c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/web3-core/src/web3_subscription_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export class Web3SubscriptionManager<

/**
*
* @param requestManager
* @param registeredSubscriptions
* @param - requestManager
* @param - registeredSubscriptions
*
* @example
* ```ts
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth/test/unit/web3_eth_subscription.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e83a2c8

Please sign in to comment.