swagger-test-templates icon indicating copy to clipboard operation
swagger-test-templates copied to clipboard

gen test.js error

Open haptear opened this issue 6 years ago • 0 comments

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(); }); });

haptear avatar Apr 11 '18 09:04 haptear