From 4b9067914eb6aad575621afe65e41331ffc08ee9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Mar 2017 20:33:26 +0900 Subject: [PATCH] [Test] Add a test --- test/api.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/api.ts b/test/api.ts index dfedd0137..370d66a5b 100644 --- a/test/api.ts +++ b/test/api.ts @@ -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'