diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-14 13:59:26 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-14 13:59:26 +0900 |
| commit | 2b4c5ecff4e4457c49a14d3ed0095cc9f0e1f758 (patch) | |
| tree | 216793638b28dd1de209561ac79544e4a27f407a /test | |
| parent | #133 (diff) | |
| download | misskey-2b4c5ecff4e4457c49a14d3ed0095cc9f0e1f758.tar.gz misskey-2b4c5ecff4e4457c49a14d3ed0095cc9f0e1f758.tar.bz2 misskey-2b4c5ecff4e4457c49a14d3ed0095cc9f0e1f758.zip | |
Implement the poll feature
Closes #164
Diffstat (limited to 'test')
| -rw-r--r-- | test/api.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/api.js b/test/api.js index 7b74eeb5cf..467568843e 100644 --- a/test/api.js +++ b/test/api.js @@ -408,6 +408,21 @@ describe('API', () => { done(); }); })); + + it('投票を添付できる', () => new Promise(async (done) => { + const me = await insertSakurako(); + request('/posts/create', { + text: 'インデントするなら?', + poll: { + choices: ['スペース', 'タブ'] + } + }, me).then(res => { + res.should.have.status(200); + res.body.should.be.a('object'); + res.body.should.have.property('poll'); + done(); + }); + })); }); describe('posts/show', () => { |