mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 17:33:22 +02:00
[Test] Fix some tests
This commit is contained in:
parent
a6ce54ec18
commit
27c4d4b83b
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue