Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
unconnected identity trustDistance = false
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Feb 21, 2019
1 parent c1f630e commit 7109a76
Show file tree
Hide file tree
Showing 5 changed files with 216 additions and 110 deletions.
4 changes: 2 additions & 2 deletions __tests__/index_.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('local index', async () => {
expect(r).toBe(true);
p = i.get('fabio@example.com');
let data = await p.gun.once().then();
expect(data.trustDistance).toBe(99);
expect(data.trustDistance).toBe(false);
msg = await identifi.Message.createRating({recipient:{email:'fabio@example.com'}, rating:10}, key);
r = await i.addMessage(msg);
p = i.get('fabio@example.com');
Expand Down Expand Up @@ -144,7 +144,7 @@ describe('local index', async () => {
msg = await identifi.Message.createRating({recipient:{email:'orwell@example.com'}, rating:-1}, key);
await i.addMessage(msg);
data = await p.gun.once().then();
expect(data.trustDistance).toBe(99);
expect(data.trustDistance).toBe(false);
});
});
describe ('untrusted key', async () => {
Expand Down

0 comments on commit 7109a76

Please sign in to comment.