Add second work evidence post to example 6
This commit is contained in:
commit
e6a0c22d3f
|
@ -52,6 +52,17 @@ describe('Forum', function tests() {
|
|||
forum.getPost(posts[2]).value.should.equal(1);
|
||||
forum.getPost(posts[3]).value.should.equal(95);
|
||||
});
|
||||
|
||||
it('Post5: Work evidence using latest work SC', async () => {
|
||||
await forumTest.addPost(experts[0], 100, [
|
||||
{ postId: posts[2], weight: 0.05 },
|
||||
]);
|
||||
forum.getPost(posts[0]).value.should.equal(7.2);
|
||||
forum.getPost(posts[1]).value.should.be.within(0.80 - EPSILON, 0.80 + EPSILON);
|
||||
forum.getPost(posts[2]).value.should.equal(2);
|
||||
forum.getPost(posts[3]).value.should.equal(95);
|
||||
forum.getPost(posts[4]).value.should.equal(95);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue