summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorこぴなたみぽ <syuilotan@yahoo.co.jp>2017-11-01 10:22:40 +0900
committerこぴなたみぽ <syuilotan@yahoo.co.jp>2017-11-01 10:22:40 +0900
commit60a7640eb1547dc61997ba5db1eb2c28bdec33a0 (patch)
tree8c0cfd5167e06d81b74efa2bca1f9bb5ab5a8e09 /test
parentv2777 (diff)
downloadmisskey-60a7640eb1547dc61997ba5db1eb2c28bdec33a0.tar.gz
misskey-60a7640eb1547dc61997ba5db1eb2c28bdec33a0.tar.bz2
misskey-60a7640eb1547dc61997ba5db1eb2c28bdec33a0.zip
RENAME: reply_to -> reply
Diffstat (limited to 'test')
-rw-r--r--test/api.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/api.js b/test/api.js
index 1e731b5549..b43eb7ff62 100644
--- a/test/api.js
+++ b/test/api.js
@@ -277,15 +277,15 @@ describe('API', () => {
const me = await insertSakurako();
const post = {
text: 'さく',
- reply_to_id: himaPost._id.toString()
+ reply_id: himaPost._id.toString()
};
const res = await request('/posts/create', post, me);
res.should.have.status(200);
res.body.should.be.a('object');
res.body.should.have.property('text').eql(post.text);
- res.body.should.have.property('reply_to_id').eql(post.reply_to_id);
- res.body.should.have.property('reply_to');
- res.body.reply_to.should.have.property('text').eql(himaPost.text);
+ res.body.should.have.property('reply_id').eql(post.reply_id);
+ res.body.should.have.property('reply');
+ res.body.reply.should.have.property('text').eql(himaPost.text);
}));
it('repostできる', async(async () => {
@@ -350,7 +350,7 @@ describe('API', () => {
const me = await insertSakurako();
const post = {
text: 'さく',
- reply_to_id: '000000000000000000000000'
+ reply_id: '000000000000000000000000'
};
const res = await request('/posts/create', post, me);
res.should.have.status(400);
@@ -369,7 +369,7 @@ describe('API', () => {
const me = await insertSakurako();
const post = {
text: 'さく',
- reply_to_id: 'kyoppie'
+ reply_id: 'kyoppie'
};
const res = await request('/posts/create', post, me);
res.should.have.status(400);