Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevcs committed Mar 4, 2024
1 parent d4b8c94 commit 7fbff58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/web3/test/unit/web3eip6963.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ describe('requestEIP6963Providers', () => {

it('should resolve with updated providers map when events are triggered', async () => {
class CustomEventPolyfill extends Event {
detail: any;
constructor(eventType: string, eventInitDict: any) {
public detail: any;
public constructor(eventType: string, eventInitDict: any) {
super(eventType, eventInitDict);
this.detail = eventInitDict.detail;
}
Expand All @@ -52,7 +52,9 @@ describe('requestEIP6963Providers', () => {

// Mock window methods
(global as any).window = {
addEventListener: jest.fn().mockImplementation((_event, callback) => callback(mockEvent)),
addEventListener: jest.fn().mockImplementation(

(_event, callback) => callback(mockEvent)), // eslint-disable-line
dispatchEvent: jest.fn()
};

Expand Down

1 comment on commit 7fbff58

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 7fbff58 Previous: 6c075db Ratio
processingTx 9073 ops/sec (±3.83%) 9301 ops/sec (±4.81%) 1.03
processingContractDeploy 36952 ops/sec (±9.03%) 39129 ops/sec (±7.62%) 1.06
processingContractMethodSend 19520 ops/sec (±6.75%) 19443 ops/sec (±5.19%) 1.00
processingContractMethodCall 40061 ops/sec (±5.21%) 38971 ops/sec (±6.34%) 0.97
abiEncode 45740 ops/sec (±6.45%) 44252 ops/sec (±6.92%) 0.97
abiDecode 31801 ops/sec (±7.90%) 30419 ops/sec (±8.89%) 0.96
sign 1617 ops/sec (±3.00%) 1656 ops/sec (±4.08%) 1.02
verify 374 ops/sec (±0.16%) 373 ops/sec (±0.78%) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.