Skip to content
Snippets Groups Projects
Commit 85869f50 authored by yamadapc's avatar yamadapc
Browse files

Add failing skipped tests for #14

parent 265c3fbc
No related branches found
No related tags found
No related merge requests found
{
"presets": [
"es2017"
]
}
...@@ -34,8 +34,14 @@ ...@@ -34,8 +34,14 @@
"ws": "^1.1.1" "ws": "^1.1.1"
}, },
"devDependencies": { "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", "browserify": "^13.0.1",
"bufferutil": "^1.2.1", "bufferutil": "^1.2.1",
"mocha": "^3.0.2",
"should": "^11.1.0",
"uglifyjs": "^2.4.10", "uglifyjs": "^2.4.10",
"utf-8-validate": "^1.2.1" "utf-8-validate": "^1.2.1"
}, },
......
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);
});
});
});
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