From 27c4d4b83b2d5e6d40ec662f087401ae576b9a8d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 12 Feb 2017 06:01:19 +0900 Subject: [PATCH] [Test] Fix some tests --- test/api.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/api.js b/test/api.js index 42f91779d..20d97e291 100644 --- a/test/api.js +++ b/test/api.js @@ -753,20 +753,22 @@ describe('API', () => { })); it('ファイルが存在しなかったら怒る', () => new Promise(async (done) => { + const me = await insertSakurako(); request('/drive/files/update', { file_id: '000000000000000000000000', name: 'いちごパスタ.png' - }).then(res => { + }, me).then(res => { res.should.have.status(400); done(); }); })); it('間違ったIDで怒られる', () => new Promise(async (done) => { + const me = await insertSakurako(); request('/drive/files/update', { file_id: 'kyoppie', name: 'いちごパスタ.png' - }).then(res => { + }, me).then(res => { res.should.have.status(400); done(); });