Skip to content

Commit 69df9f2

Browse files
author
Fabien
authored
Merge pull request #129 from steemit/improve-test-comment-options
Improve comment with options test
2 parents d5e70f5 + 1edbc99 commit 69df9f2

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "steem",
3-
"version": "0.5.4",
3+
"version": "0.5.5",
44
"description": "Steem.js the JavaScript API for Steem blockchain",
55
"main": "index.js",
66
"scripts": {

test/comment.test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Promise from 'bluebird';
22
import should from 'should';
33
import steemAuth from '../src/auth';
44
import steemBroadcast from '../src/broadcast';
5+
import pkg from '../package.json';
56

67
const username = process.env.STEEM_USERNAME || 'guest123';
78
const password = process.env.STEEM_PASSWORD;
@@ -26,8 +27,11 @@ describe('steem.broadcast:', () => {
2627
author: username,
2728
permlink,
2829
title: 'Test',
29-
body: 'Hello!',
30-
json_metadata :"{\"tags\":[\"steem\"],\"app\":\"steemjs\/0.5.3\",\"format\":\"markdown\"}"
30+
body: `This is a test using Steem.js v${pkg.version}.`,
31+
json_metadata : JSON.stringify({
32+
tags: ['test'],
33+
app: `steemjs/${pkg.version}`
34+
})
3135
}
3236
],
3337
['comment_options', {

0 commit comments

Comments
 (0)