diff --git a/test/api.test.js b/test/api.test.js index 631e4587875884db384874fc05e6a8f3bd96a3e2..581168a8bce7609ff1de4ec1a45c978956f933b3 100644 --- a/test/api.test.js +++ b/test/api.test.js @@ -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;