From 9daf238232d846b497ba93cca55c792ef4fe06ac Mon Sep 17 00:00:00 2001
From: yamadapc <tacla.yamada@gmail.com>
Date: Wed, 18 Jan 2017 12:27:29 -0200
Subject: [PATCH] Update getFollowers tests for #52

---
 test/api.test.js | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/test/api.test.js b/test/api.test.js
index 631e458..581168a 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;
-- 
GitLab