Skip to content

Commit

Permalink
Added a request method - Fixes #77
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhar1989 committed May 13, 2014
1 parent 032cf3a commit 4c79f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/responseHandlers/TestResponseHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ var TestResponseHandler = jsface.Class(AbstractResponseHandler, {
responseTime: response.stats.timeTaken,
request: {
url: request.transformed.url,
method: request.method,
headers: Helpers.generateHeaderObj(request.transformed.headers),
data: this._getTransformedRequestData(request),
dataMode: request.dataMode
Expand Down
2 changes: 1 addition & 1 deletion tests/data/PostmanCollection.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"data": "{\n \"post\": \"This is a new post\"\n}",
"dataMode": "raw",
"version": 2,
"tests": "var data = JSON.parse(responseBody);\ntests[\"Body has a message\"] = responseBody.has(data[\"message\"]);\ntests[\"invalid credentials\"] = data.message === \"Invalid credentials\"\n",
"tests": "",
"time": 1396957765546,
"name": "New post without token",
"description": "Create a new blog post",
Expand Down

0 comments on commit 4c79f53

Please sign in to comment.