Commit 72fa7d96 authored by Fabien's avatar Fabien Committed by GitHub

Merge pull request #139 from steemit/update-doc-and-test

Update doc and comment test
parents 94d1f045 5511d228
......@@ -246,6 +246,12 @@ steem.api.getNextScheduledHardfork(function(err, result) {
console.log(err, result);
});
```
### Get Reward Fund
```
steem.api.getRewardFund(name, function(err, result) {
console.log(err, result);
});
```
## Keys
......
......@@ -18,7 +18,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/adcpm/steem.git"
"url": "git+https://github.com/steemit/steem-js.git"
},
"keywords": [
"steem",
......@@ -26,7 +26,7 @@
"blockchain",
"steemjs"
],
"author": "Bonustrack <fabien@bonustrack.co> (https://github.com/bonustrack)",
"author": "Fabien (https://github.com/bonustrack)",
"license": "MIT",
"bugs": {
"url": "https://github.com/steemit/steem-js/issues"
......@@ -69,9 +69,8 @@
"webpack-visualizer-plugin": "^0.1.5"
},
"contributors": [
"Bonustrack (https://github.com/bonustrack)",
"KaptainKrayola (https://github.com/KaptainKrayola)",
"heimindanger (https://github.com/skzap)",
"Fabien (https://github.com/bonustrack)",
"James Calfee (https://github.com/jcalfee)",
"Nilesh Suthar (https://github.com/nil1511)",
"Pedro Tacla Yamada (https://github.com/yamadapc)"
]
......
......@@ -153,32 +153,4 @@ describe('steem.broadcast:', () => {
]);
});
});
describe('comment', () => {
before(() => {
return Promise.delay(2000);
});
it('works', async () => {
const tx = await steemBroadcast.commentAsync(
postingWif,
'siol',
'3xxvvs-test',
username,
steemFormatter.commentPermlink('siol', '3xxvvs-test'),
'Test',
'This is a test!',
JSON.stringify({ app: `steemjs/${packageJson.version}` }),
);
tx.should.have.properties([
'expiration',
'ref_block_num',
'ref_block_prefix',
'extensions',
'operations',
'signatures',
]);
});
});
});
......@@ -22,7 +22,7 @@ describe('steem.broadcast:', () => {
const operations = [
['comment',
{
parent_author: '',
parent_author: 'siol',
parent_permlink: 'test',
author: username,
permlink,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment