diff --git a/src/lib/node.spec.ts b/src/lib/node.spec.ts index d489865368..8058c3d068 100644 --- a/src/lib/node.spec.ts +++ b/src/lib/node.spec.ts @@ -44,6 +44,13 @@ test('Register waku relay protocol', async (t) => { t.truthy(protocols.findIndex((value) => value == CODEC)); }); +test('Does not register any sub protocol', async (t) => { + const node = await createNode(); + + const protocols = Array.from(node.upgrader.protocols.keys()); + t.truthy(protocols.findIndex((value) => value.match(/sub/))); +}); + function waitForNextData(pubsub: Pubsub): Promise { return new Promise((resolve) => { pubsub.once(TOPIC, resolve);