This repository was archived by the owner on May 15, 2023. It is now read-only.

Description
Use this "http://swagger-net-test.azurewebsites.net/swagger/docs/V1" swagger to gen the test.js
file: api-ArrayTest-Post Arrays-test.js
the last it is wrong format:
it('should respond with 200 OK', function(done) {
request({
url: 'http://swagger-net-test.azurewebsites.net/api/ArrayTest/Post Arrays',
method: 'POST',
headers: {
'Content-Type': 'text/html',
Authorization: 'Bearer ' + process.env.OAUTH_2
}, //this miss a }
function(error, res, body) {
if (error) return done(error);
expect(res.statusCode).to.equal(200);
expect(body).to.equal(null); // non-json response or no schema
done();
});
});