await makeUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches })
})
+ it('Should fail with an unauthenticated user', async function () {
+ const fields = {}
+ const attaches = {
+ 'avatarfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png')
+ }
+ await makeUploadRequest({
+ url: server.url,
+ path: path + '/me/avatar/pick',
+ fields,
+ attaches,
+ statusCodeExpected: 401
+ })
+ })
+
it('Should succeed with the correct params', async function () {
const fields = {}
const attaches = {
})
it('Should fail with a registered user having too many video', async function () {
- this.timeout(15000)
+ this.timeout(30000)
const user = {
username: 'user3',