generated from adobe/franklin-service
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(index): respond with a useful error message when one of the chec…
…ks fails
- Loading branch information
Showing
3 changed files
with
162 additions
and
18 deletions.
There are no files selected for viewing
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
105 changes: 105 additions & 0 deletions
105
...x-Tests_647266286/index-function-fails-with-useful-error-message_1959879595/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,105 @@ | ||
{ | ||
"log": { | ||
"_recordingName": "Index Tests/index function fails with useful error message", | ||
"creator": { | ||
"comment": "persister:fs", | ||
"name": "Polly.JS", | ||
"version": "2.5.0" | ||
}, | ||
"entries": [ | ||
{ | ||
"_id": "013c7aafcd9aa79cc2119918d88de8a7", | ||
"_order": 0, | ||
"cache": {}, | ||
"request": { | ||
"bodySize": 0, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "host", | ||
"value": "www.example.com" | ||
} | ||
], | ||
"headersSize": 63, | ||
"httpVersion": "HTTP/1.1", | ||
"method": "GET", | ||
"queryString": [], | ||
"url": "http://www.example.com/" | ||
}, | ||
"response": { | ||
"bodySize": 1270, | ||
"content": { | ||
"mimeType": "text/html; charset=UTF-8", | ||
"size": 1270, | ||
"text": "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 50px;\n background-color: #fff;\n border-radius: 1em;\n }\n a:link, a:visited {\n color: #38488f;\n text-decoration: none;\n }\n @media (max-width: 700px) {\n body {\n background-color: #fff;\n }\n div {\n width: auto;\n margin: 0 auto;\n border-radius: 0;\n padding: 1em;\n }\n }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n <p>This domain is established to be used for illustrative examples in documents. You may use this\n domain in examples without prior coordination or asking for permission.</p>\n <p><a href=\"http://www.iana.org/domains/example\">More information...</a></p>\n</div>\n</body>\n</html>\n" | ||
}, | ||
"cookies": [], | ||
"headers": [ | ||
{ | ||
"name": "cache-control", | ||
"value": "max-age=604800" | ||
}, | ||
{ | ||
"name": "content-type", | ||
"value": "text/html; charset=UTF-8" | ||
}, | ||
{ | ||
"name": "date", | ||
"value": "Sun, 16 Jun 2019 19:41:42 GMT" | ||
}, | ||
{ | ||
"name": "etag", | ||
"value": "\"1541025663+gzip+ident\"" | ||
}, | ||
{ | ||
"name": "expires", | ||
"value": "Sun, 23 Jun 2019 19:41:42 GMT" | ||
}, | ||
{ | ||
"name": "last-modified", | ||
"value": "Fri, 09 Aug 2013 23:54:35 GMT" | ||
}, | ||
{ | ||
"name": "server", | ||
"value": "ECS (nyb/1D07)" | ||
}, | ||
{ | ||
"name": "vary", | ||
"value": "Accept-Encoding" | ||
}, | ||
{ | ||
"name": "x-cache", | ||
"value": "HIT" | ||
}, | ||
{ | ||
"name": "content-length", | ||
"value": "1270" | ||
}, | ||
{ | ||
"name": "connection", | ||
"value": "close" | ||
} | ||
], | ||
"headersSize": 329, | ||
"httpVersion": "HTTP/1.1", | ||
"redirectURL": "", | ||
"status": 200, | ||
"statusText": "OK" | ||
}, | ||
"startedDateTime": "2019-06-16T19:41:42.040Z", | ||
"time": 1080, | ||
"timings": { | ||
"blocked": -1, | ||
"connect": -1, | ||
"dns": -1, | ||
"receive": 0, | ||
"send": 0, | ||
"ssl": -1, | ||
"wait": 1080 | ||
} | ||
} | ||
], | ||
"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