Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

gen test.js error #171

Open
haptear opened this issue Apr 11, 2018 · 0 comments
Open

gen test.js error #171

haptear opened this issue Apr 11, 2018 · 0 comments

Comments

@haptear
Copy link

haptear commented Apr 11, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant