[Test] Fix some tests

This commit is contained in:
syuilo 2017-02-12 06:01:19 +09:00
parent a6ce54ec18
commit 27c4d4b83b

View file

@ -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();
});