parent
35cf9f5d04
commit
2b4c5ecff4
18 changed files with 448 additions and 56 deletions
15
test/api.js
15
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', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue