diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-12 06:01:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-12 06:01:19 +0900 |
| commit | 27c4d4b83b2d5e6d40ec662f087401ae576b9a8d (patch) | |
| tree | 598a7dca150b2dc5863106f30b395b936d4e219b /test | |
| parent | [Test] Add some tests (diff) | |
| download | misskey-27c4d4b83b2d5e6d40ec662f087401ae576b9a8d.tar.gz misskey-27c4d4b83b2d5e6d40ec662f087401ae576b9a8d.tar.bz2 misskey-27c4d4b83b2d5e6d40ec662f087401ae576b9a8d.zip | |
[Test] Fix some tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/api.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/api.js b/test/api.js index 42f91779d5..20d97e2912 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(); }); |