Skip to content

Commit

Permalink
remove old test for peerManager, fix check and spell
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Oct 24, 2024
1 parent 8a3337d commit d4210c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 149 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"upgrader",
"vacp",
"varint",
"weboko",
"waku",
"wakuconnect",
"wakunode",
Expand Down
5 changes: 4 additions & 1 deletion packages/sdk/src/protocols/light_push/light_push.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { utf8ToBytes } from "@waku/utils/bytes";
import { expect } from "chai";
import sinon from "sinon";

import { PeerManager } from "../peer_manager.js";

import { LightPush } from "./light_push.js";

const PUBSUB_TOPIC = "/waku/2/rs/1/4";
Expand Down Expand Up @@ -156,7 +158,8 @@ function mockLightPush(options: MockLightPushOptions): LightPush {
return new LightPush(
{
configuredPubsubTopics: options.pubsubTopics || [PUBSUB_TOPIC]
} as ConnectionManager,
} as unknown as ConnectionManager,
{} as unknown as PeerManager,
options.libp2p
);
}
Expand Down
148 changes: 0 additions & 148 deletions packages/sdk/src/protocols/peer_manager.spec.ts

This file was deleted.

0 comments on commit d4210c7

Please sign in to comment.