diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-13 01:07:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-13 01:07:07 +0900 |
| commit | 1096722e124e9bc1dfa73fbe633b1d64e764a4fb (patch) | |
| tree | 4b15f59a08da62fea79c6b6a2ea1e34ab3a3fe0e | |
| parent | [Doc] Update doc (diff) | |
| download | sharkey-1096722e124e9bc1dfa73fbe633b1d64e764a4fb.tar.gz sharkey-1096722e124e9bc1dfa73fbe633b1d64e764a4fb.tar.bz2 sharkey-1096722e124e9bc1dfa73fbe633b1d64e764a4fb.zip | |
[Test] Fix test
| -rw-r--r-- | test/api.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/api.js b/test/api.js index 1ba4eb4e8c..8a3fef4165 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 => { |