summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-06 03:50:27 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-06 03:50:27 +0900
commit79c264171d69992ce76f4ceec2bd03b0e5faaac3 (patch)
tree184d909156a10bb073376f3d89cd548648f48bda /test
parentMerge pull request #235 from syuilo/greenkeeper/cafy-1.0.1 (diff)
downloadmisskey-79c264171d69992ce76f4ceec2bd03b0e5faaac3.tar.gz
misskey-79c264171d69992ce76f4ceec2bd03b0e5faaac3.tar.bz2
misskey-79c264171d69992ce76f4ceec2bd03b0e5faaac3.zip
[]API Fix bugs
Diffstat (limited to 'test')
-rw-r--r--test/api.js5
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);
}));