how to upload array of files in supertest code example
Example: how to upload array of files in supertest
it('Add a session', function(done) {
api.post('/api/projects/' + projectId + '/sessions')
.set('X-Auth', tokenA)
.attach('files', './test/files/d.zip')
.attach('files', './test/files/m.csv')
.attach('files', './test/files/o.15o.txt')
.attach('files', './test/files/e.n')
.end(function(err, res) {
expect(res.status).to.equal(201)
done(err)
})
})