*Change all_cache to allCache
This commit is contained in:
parent
4f93d23b68
commit
627736ea1a
|
@ -77,7 +77,7 @@ export default class DHTCache extends EventEmitter {
|
||||||
return [...this._cache].sort();
|
return [...this._cache].sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
public get all_cache(): string[] {
|
public get allCache(): string[] {
|
||||||
const items = [];
|
const items = [];
|
||||||
for (const id of this.graph.nodesIter()) {
|
for (const id of this.graph.nodesIter()) {
|
||||||
const item = this.graph.node.get(id);
|
const item = this.graph.node.get(id);
|
||||||
|
|
4
test.js
4
test.js
|
@ -54,8 +54,8 @@ test("Basic presence test / data propagation", (t) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
t.pass("Seeing everyone online");
|
t.pass("Seeing everyone online");
|
||||||
|
|
||||||
t.equals(true, p2.all_cache.includes(peerData1[0]));
|
t.equals(true, p2.allCache.includes(peerData1[0]));
|
||||||
t.equals(true, p1.all_cache.includes(peerData2[0]));
|
t.equals(true, p1.allCache.includes(peerData2[0]));
|
||||||
|
|
||||||
hasFinished = true;
|
hasFinished = true;
|
||||||
peer2._allConnections.get(peer1.keyPair.publicKey).end();
|
peer2._allConnections.get(peer1.keyPair.publicKey).end();
|
||||||
|
|
Loading…
Reference in New Issue