mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 04:03:07 +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) => {
|
it('ファイルが存在しなかったら怒る', () => new Promise(async (done) => {
|
||||||
|
const me = await insertSakurako();
|
||||||
request('/drive/files/update', {
|
request('/drive/files/update', {
|
||||||
file_id: '000000000000000000000000',
|
file_id: '000000000000000000000000',
|
||||||
name: 'いちごパスタ.png'
|
name: 'いちごパスタ.png'
|
||||||
}).then(res => {
|
}, me).then(res => {
|
||||||
res.should.have.status(400);
|
res.should.have.status(400);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('間違ったIDで怒られる', () => new Promise(async (done) => {
|
it('間違ったIDで怒られる', () => new Promise(async (done) => {
|
||||||
|
const me = await insertSakurako();
|
||||||
request('/drive/files/update', {
|
request('/drive/files/update', {
|
||||||
file_id: 'kyoppie',
|
file_id: 'kyoppie',
|
||||||
name: 'いちごパスタ.png'
|
name: 'いちごパスタ.png'
|
||||||
}).then(res => {
|
}, me).then(res => {
|
||||||
res.should.have.status(400);
|
res.should.have.status(400);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue