- const fields = {}
- const attaches = {
- avatarfile: join(__dirname, '..', '..', 'fixtures', 'avatar.png')
+ for (const type of types) {
+ const fields = {}
+ const attaches = {
+ [type + 'file']: buildAbsoluteFixturePath('avatar.png')
+ }
+ await makeUploadRequest({
+ url: server.url,
+ path: `${path}/${type}/pick`,
+ token: server.accessToken,
+ fields,
+ attaches,
+ statusCodeExpected: HttpStatusCode.OK_200
+ })