diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-06 03:50:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-06 03:50:27 +0900 |
| commit | 79c264171d69992ce76f4ceec2bd03b0e5faaac3 (patch) | |
| tree | 184d909156a10bb073376f3d89cd548648f48bda /test | |
| parent | Merge pull request #235 from syuilo/greenkeeper/cafy-1.0.1 (diff) | |
| download | misskey-79c264171d69992ce76f4ceec2bd03b0e5faaac3.tar.gz misskey-79c264171d69992ce76f4ceec2bd03b0e5faaac3.tar.bz2 misskey-79c264171d69992ce76f4ceec2bd03b0e5faaac3.zip | |
[]API Fix bugs
Diffstat (limited to 'test')
| -rw-r--r-- | test/api.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/api.js b/test/api.js index ef20351d09..a9e7c8fb52 100644 --- a/test/api.js +++ b/test/api.js @@ -754,8 +754,7 @@ describe('API', () => { const res = await _chai.request(server) .post('/drive/files/create') .field('i', me.token) - .attach('file', fs.readFileSync(__dirname + '/resources/Lenna.png'), 'Lenna.png') - .end(); + .attach('file', fs.readFileSync(__dirname + '/resources/Lenna.png'), 'Lenna.png'); res.should.have.status(200); res.body.should.be.a('object'); res.body.should.have.property('name').eql('Lenna.png'); @@ -1096,7 +1095,7 @@ describe('API', () => { const hima = await insertHimawari(); const res = await request('/messaging/messages/create', { user_id: hima._id.toString(), - text: '!'.repeat(501) + text: '!'.repeat(1001) }, me); res.should.have.status(400); })); |