From 0b99ae0fb9e88c61a64cf2d44fce428a3cd72c05 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 20 Jan 2017 17:36:19 +0900 Subject: [PATCH] [Test] Fix test --- test/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api.js b/test/api.js index a572faad8..ee6098349 100644 --- a/test/api.js +++ b/test/api.js @@ -353,7 +353,7 @@ describe('API', () => { request('/posts/likes/create', { post_id: himaPost._id.toString() }, me).then(res => { - res.should.have.status(200); + res.should.have.status(204); done(); }); })); @@ -380,12 +380,12 @@ describe('API', () => { text: 'ひま' }); + const me = await insertSakurako(); await db.get('likes').insert({ user_id: me._id, post_id: himaPost._id }); - const me = await insertSakurako(); request('/posts/likes/create', { post_id: himaPost._id.toString() }, me).then(res => {