-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: converts JSON requests to objects for storage
- Loading branch information
Showing
4 changed files
with
163 additions
and
4 deletions.
There are no files selected for viewing
114 changes: 114 additions & 0 deletions
114
...dings__/jest-polly_2290543114/expands-JSON-request-to-JSON-object_463272983/recording.har
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"log": { | ||
"_recordingName": "jest-polly/expands JSON request to JSON object", | ||
"creator": { | ||
"comment": "persister:fs", | ||
"name": "Polly.JS", | ||
"version": "4.1.0" | ||
}, | ||
"entries": [ | ||
{ | ||
"_id": "4ce0bef779e22316114e462b687a900b", | ||
"_order": 0, | ||
"cache": {}, | ||
"request": { | ||
"bodySize": 10, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"_fromType": "array", | ||
"name": "content-type", | ||
"value": "application/json" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "accept", | ||
"value": "*/*" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "content-length", | ||
"value": "10" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "user-agent", | ||
"value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "accept-encoding", | ||
"value": "gzip,deflate" | ||
}, | ||
{ | ||
"_fromType": "array", | ||
"name": "connection", | ||
"value": "close" | ||
}, | ||
{ | ||
"name": "host", | ||
"value": "localhost:8080" | ||
} | ||
], | ||
"headersSize": 245, | ||
"httpVersion": "HTTP/1.1", | ||
"method": "POST", | ||
"postData": { | ||
"mimeType": "application/json", | ||
"params": [], | ||
"text": { | ||
"a": true | ||
} | ||
}, | ||
"queryString": [], | ||
"url": "http://localhost:8080/" | ||
}, | ||
"response": { | ||
"bodySize": 2, | ||
"content": { | ||
"mimeType": "text/plain", | ||
"size": 2, | ||
"text": "{}" | ||
}, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "content-type", | ||
"value": "text/plain" | ||
}, | ||
{ | ||
"name": "date", | ||
"value": "Wed, 29 Apr 2020 14:49:38 GMT" | ||
}, | ||
{ | ||
"name": "connection", | ||
"value": "close" | ||
}, | ||
{ | ||
"name": "transfer-encoding", | ||
"value": "chunked" | ||
} | ||
], | ||
"headersSize": 112, | ||
"httpVersion": "HTTP/1.1", | ||
"redirectURL": "", | ||
"status": 200, | ||
"statusText": "OK" | ||
}, | ||
"startedDateTime": "2020-04-29T14:49:38.521Z", | ||
"time": 33, | ||
"timings": { | ||
"blocked": -1, | ||
"connect": -1, | ||
"dns": -1, | ||
"receive": 0, | ||
"send": 0, | ||
"ssl": -1, | ||
"wait": 33 | ||
} | ||
} | ||
], | ||
"pages": [], | ||
"version": "1.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const APPLICATION_JSON_MIME = 'application/json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters