Skip to content

Commit

Permalink
Add test for HTTP body auto-highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
Sannis committed Aug 24, 2015
1 parent 63fb207 commit f9a6172
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/markup/http/default.expect.txt
@@ -0,0 +1,7 @@
<span class="hljs-request">POST <span class="hljs-string">/task?id=1</span> HTTP/1.1</span>
<span class="hljs-attribute">Host</span>: <span class="hljs-string">example.org</span>
<span class="hljs-attribute">Content-Type</span>: <span class="hljs-string">application/json; charset=utf-8</span>
<span class="hljs-attribute">Content-Length</span>: <span class="hljs-string">19</span>

<span class="json">{"<span class="hljs-attribute">status</span>": <span class="hljs-value"><span class="hljs-string">"ok"</span></span>, "<span class="hljs-attribute">extended</span>": <span class="hljs-value"><span class="hljs-literal">true</span></span>}
</span>
6 changes: 6 additions & 0 deletions test/markup/http/default.txt
@@ -0,0 +1,6 @@
POST /task?id=1 HTTP/1.1
Host: example.org
Content-Type: application/json; charset=utf-8
Content-Length: 19

{"status": "ok", "extended": true}

0 comments on commit f9a6172

Please sign in to comment.