Skip to content

Commit 85a317b

Browse files
committed
chore: add missing component to tests
1 parent c8c29f0 commit 85a317b

File tree

1 file changed

+3
-1
lines changed
  • packages/interface-compliance-tests/src/pubsub

1 file changed

+3
-1
lines changed

packages/interface-compliance-tests/src/pubsub/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { EventEmitter } from '@libp2p/interface/events'
12
import { createEd25519PeerId } from '@libp2p/peer-id-factory'
23
import { pEvent } from 'p-event'
34
import pWaitFor from 'p-wait-for'
@@ -17,7 +18,8 @@ export async function waitForSubscriptionUpdate (a: PubSub, b: PeerId): Promise<
1718
export async function createComponents (): Promise<MockNetworkComponents> {
1819
const components: any = {
1920
peerId: await createEd25519PeerId(),
20-
registrar: mockRegistrar()
21+
registrar: mockRegistrar(),
22+
events: new EventEmitter()
2123
}
2224
components.connectionManager = mockConnectionManager(components)
2325

0 commit comments

Comments
 (0)