Answers for "how to upload array of files in supertest"

0

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)
        })
})
Posted by: Guest on December-09-2020

Browse Popular Code Answers by Language