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

Commit

Permalink
Merge pull request #83 from anil614sagar/master
Browse files Browse the repository at this point in the history
Update Readme.md #82
  • Loading branch information
noahdietz committed Aug 17, 2015
2 parents a03ed71 + 7ee721b commit 1c3c39e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ npm install --save swagger-test-templates
Use your [Swagger](http://swagger.io) API spec file to generate test for your API.

```javascript
var testGen = require('swagger-test-templates');
var stt = require('swagger-test-templates');
var swagger = require('/path/to/swagger.json');
var config = {
assertionFormat: 'should',
testModule: 'supertest',
pathNames: ['/user', '/user/{id}'],
pathName: ['/user', '/user/{id}'],
loadTest: [{pathName:'/user', operation:'get', load:{requests: 1000, concurrent: 100}}, { /* ... */ }],
maxLen: 80
};

// Generates an array of JavaScript test files following specified configuration
testGen(swagger, config);
stt.testGen(swagger, config);
```

## API
Expand Down

0 comments on commit 1c3c39e

Please sign in to comment.