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

gen test.js error #171

@haptear

Description

@haptear

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions