0
0
This commit is contained in:
syuilo 2017-01-19 15:40:43 +09:00
parent adb42fe60b
commit 6d3542465d

View File

@ -124,7 +124,8 @@ describe('API', () => {
}));
});
it('i/update', () => new Promise(async (done) => {
describe('i/update', () => {
it('アカウント設定を更新できる', () => new Promise(async (done) => {
const me = await insertSakurako();
const myName = '大室櫻子';
@ -145,6 +146,17 @@ describe('API', () => {
});
}));
it('不正な誕生日の形式で怒られる', () => new Promise(async (done) => {
const me = await insertSakurako();
request('/i/update', {
birthday: '2000/09/07'
}, me).then(res => {
res.should.have.status(400);
done();
});
}));
});
describe('users/show', () => {
it('ユーザーが取得できる', () => new Promise(async (done) => {
const me = await insertSakurako();