mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-11 21:29:08 +09:00
[Test] Fix test
This commit is contained in:
parent
3fa7ab4df4
commit
1096722e12
@ -222,7 +222,9 @@ describe('API', () => {
|
|||||||
|
|
||||||
it('ファイルを添付できる', () => new Promise(async (done) => {
|
it('ファイルを添付できる', () => new Promise(async (done) => {
|
||||||
const me = await insertSakurako();
|
const me = await insertSakurako();
|
||||||
const file = await insertDriveFile();
|
const file = await insertDriveFile({
|
||||||
|
user_id: me._id
|
||||||
|
});
|
||||||
request('/posts/create', {
|
request('/posts/create', {
|
||||||
media_ids: [file._id.toString()]
|
media_ids: [file._id.toString()]
|
||||||
}, me).then(res => {
|
}, me).then(res => {
|
||||||
|
Loading…
Reference in New Issue
Block a user