Skip to content
Snippets Groups Projects
Commit 9daf2382 authored by yamadapc's avatar yamadapc
Browse files

Update getFollowers tests for #52

parent df214714
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,15 @@ describe('steem', function () {
result.should.have.lengthOf(5);
});
it('the startFollower parameter has an impact on the result', async () => {
// Get the first 5
const result1 = await steem.getFollowersAsync('ned', 0, 'blog', 5)
result1.should.have.lengthOf(5);
const result2 = await steem.getFollowersAsync('ned', result1[result1.length - 1].follower, 'blog', 5)
result2.should.have.lengthOf(5);
result1.should.not.be.eql(result2);
});
it('clears listeners', async () => {
steem.listeners('message').should.have.lengthOf(0);
});
......@@ -65,15 +74,6 @@ describe('steem', function () {
});
});
describe('getFollowers', () => {
describe('getting ned\'s followers', () => {
it('works', async () => {
const result = await steem.getFollowersAsync('ned', 0, 'blog', 5);
result.should.have.lengthOf(5);
});
});
});
describe('streamBlockNumber', () => {
it('streams steem transactions', (done) => {
let i = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment