From 85869f50ca379a9d7e68b7b7fd0b240ef18f1210 Mon Sep 17 00:00:00 2001
From: yamadapc <tacla.yamada@gmail.com>
Date: Fri, 16 Sep 2016 16:24:21 -0300
Subject: [PATCH] Add failing skipped tests for #14

---
 .babelrc         |  5 +++++
 package.json     |  6 ++++++
 test/api.test.js | 23 +++++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 .babelrc
 create mode 100644 test/api.test.js

diff --git a/.babelrc b/.babelrc
new file mode 100644
index 0000000..6b6a9ee
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,5 @@
+{
+  "presets": [
+    "es2017"
+  ]
+}
diff --git a/package.json b/package.json
index 3047282..7357453 100644
--- a/package.json
+++ b/package.json
@@ -34,8 +34,14 @@
     "ws": "^1.1.1"
   },
   "devDependencies": {
+    "babel-polyfill": "^6.13.0",
+    "babel-preset-es2017": "^6.14.0",
+    "babel-register": "^6.14.0",
+    "bluebird": "^3.4.6",
     "browserify": "^13.0.1",
     "bufferutil": "^1.2.1",
+    "mocha": "^3.0.2",
+    "should": "^11.1.0",
     "uglifyjs": "^2.4.10",
     "utf-8-validate": "^1.2.1"
   },
diff --git a/test/api.test.js b/test/api.test.js
new file mode 100644
index 0000000..a555a01
--- /dev/null
+++ b/test/api.test.js
@@ -0,0 +1,23 @@
+const Promise = require('bluebird');
+const should = require('should');
+
+const Steem = require('..');
+Promise.promisifyAll(Steem.api);
+
+describe('getFollowers', () => {
+  describe('getting ned\'s followers', () => {
+    it('works', async () => {
+      const result = await Steem.api.getFollowersAsync('ned', 0, 'blog', 5)
+      result.should.have.lengthOf(5);
+    });
+
+    it.skip('the startFollower parameter has an impact on the result', async () => {
+      // Get the first 5
+      const result1 = await Steem.api.getFollowersAsync('ned', 0, 'blog', 5)
+      result1.should.have.lengthOf(5);
+      const result2 = await Steem.api.getFollowersAsync('ned', 5, 'blog', 5)
+      result2.should.have.lengthOf(5);
+      result1.should.not.be.eql(result2);
+    });
+  });
+});
-- 
GitLab