From 627736ea1a0684c19b23d8dfa3bec7e42e2e0d75 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 23 Nov 2022 21:23:29 -0500 Subject: [PATCH] *Change all_cache to allCache --- src/index.ts | 2 +- test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 20d9ab4..a75be70 100644 --- a/src/index.ts +++ b/src/index.ts @@ -77,7 +77,7 @@ export default class DHTCache extends EventEmitter { return [...this._cache].sort(); } - public get all_cache(): string[] { + public get allCache(): string[] { const items = []; for (const id of this.graph.nodesIter()) { const item = this.graph.node.get(id); diff --git a/test.js b/test.js index 82ffede..acd7367 100644 --- a/test.js +++ b/test.js @@ -54,8 +54,8 @@ test("Basic presence test / data propagation", (t) => { setTimeout(() => { t.pass("Seeing everyone online"); - t.equals(true, p2.all_cache.includes(peerData1[0])); - t.equals(true, p1.all_cache.includes(peerData2[0])); + t.equals(true, p2.allCache.includes(peerData1[0])); + t.equals(true, p1.allCache.includes(peerData2[0])); hasFinished = true; peer2._allConnections.get(peer1.keyPair.publicKey).end();