diff --git a/packages/clients/peerbit-server/node/src/__tests__/client.test.ts b/packages/clients/peerbit-server/node/src/__tests__/client.test.ts index 1003512ec..e597a0c96 100644 --- a/packages/clients/peerbit-server/node/src/__tests__/client.test.ts +++ b/packages/clients/peerbit-server/node/src/__tests__/client.test.ts @@ -14,7 +14,9 @@ describe("client", () => { directory: "./tmp/server-node/client/" + new Date(), listenPort: 9123 }); - expect(client.services.blocks["_localStore"]).toBeInstanceOf(AnyBlockStore); + expect(client.services.blocks["remoteBlocks"].localStore).toBeInstanceOf( + AnyBlockStore + ); expect(client.services.blocks["canRelayMessage"]).toEqual(true); expect(client.services.pubsub["canRelayMessage"]).toEqual(true); expect(client.services["relay"]).toBeDefined(); diff --git a/packages/clients/peerbit/src/__tests__/create.test.ts b/packages/clients/peerbit/src/__tests__/create.test.ts index 83540326e..031eafb0f 100644 --- a/packages/clients/peerbit/src/__tests__/create.test.ts +++ b/packages/clients/peerbit/src/__tests__/create.test.ts @@ -35,7 +35,8 @@ describe("Create", function () { it("block storage exist at path", async () => { const location = ( - client.libp2p.services.blocks["_localStore"] as AnyBlockStore + client.libp2p.services.blocks["remoteBlocks"] + .localStore as AnyBlockStore )["_store"].store["location"]; expect(location).toEndWith( path.join(client.directory!, "blocks").toString() diff --git a/packages/clients/peerbit/src/__tests__/dial.test.ts b/packages/clients/peerbit/src/__tests__/dial.test.ts index cd077f51f..da1a3629a 100644 --- a/packages/clients/peerbit/src/__tests__/dial.test.ts +++ b/packages/clients/peerbit/src/__tests__/dial.test.ts @@ -34,21 +34,21 @@ describe(`dial`, function () { expect(data && new Uint8Array(data)).toEqual(new Uint8Array([1])); }); - it("autodials by default", async () => { + it("dialer settings", async () => { expect( clients[0].services.pubsub.connectionManagerOptions.dialer ).toBeDefined(); expect( clients[1].services.blocks.connectionManagerOptions.dialer - ).toBeDefined(); + ).toBeUndefined(); }); - it("autoprunes by default", async () => { + it("prune settings", async () => { expect( clients[0].services.pubsub.connectionManagerOptions.pruner ).toBeDefined(); expect( clients[1].services.blocks.connectionManagerOptions.pruner - ).toBeDefined(); + ).toBeUndefined(); }); });