Skip to content

Commit

Permalink
feat(negotiator): WIP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Miaskowski committed Oct 12, 2018
1 parent 3e54569 commit 3776042
Show file tree
Hide file tree
Showing 4 changed files with 364 additions and 67 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
"test.update": "yarn test.fast --updateSnapshot"
},
"devDependencies": {
"@types/chance": "^1.0.1",
"@types/jest": "23.3.x",
"@types/node": "10.11.x",
"chance": "^1.0.16",
"jest": "23.6.x",
"ts-jest": "23.10.x",
"tslint": "5.11.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class HttpOperationOptionsNegotiator implements IOperationOptions
*/
private negotiateOptionsForInvalidRequest(httpResponses: IHttpResponse[], httpRequest: IHttpRequest): IHttpOperationOptions {
// currently only try to find a 400 response, but we may want to support other cases in the future
let code = '400';
const code = '400';
let mediaType;
let exampleKey;
let dynamic;
Expand Down
Loading

0 comments on commit 3776042

Please sign in to comment.