[Test] Add a test

This commit is contained in:
syuilo 2017-03-01 20:33:26 +09:00
parent 52af0ccf0a
commit 4b9067914e

View file

@ -169,6 +169,16 @@ describe('API', () => {
});
});
it('名前を空白にできない', () => async (done) => {
const me = await insertSakurako();
request('/i/update', {
name: ' '
}, me).then(res => {
res.should.have.status(400);
done();
});
});
it('誕生日の設定を削除できる', () => async (done) => {
const me = await insertSakurako({
birthday: '2000-09-07'