From 691b5e5484710acb81893861594d8805e77d47a6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 13 Feb 2017 01:07:07 +0900 Subject: [PATCH] [Test] Fix test --- test/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/api.js b/test/api.js index 1ba4eb4e8..8a3fef416 100644 --- a/test/api.js +++ b/test/api.js @@ -222,7 +222,9 @@ describe('API', () => { it('ファイルを添付できる', () => new Promise(async (done) => { const me = await insertSakurako(); - const file = await insertDriveFile(); + const file = await insertDriveFile({ + user_id: me._id + }); request('/posts/create', { media_ids: [file._id.toString()] }, me).then(res => {