Skip to content

Commit

Permalink
test(multiline) add multiline output fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenjennings committed May 5, 2019
1 parent ebbcb5d commit c780dad
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/fixtures/output/http/1.1/jsonObj-multiline
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
POST /har HTTP/1.1
Content-Type: application/json
Host: mockbin.com
Content-Length: 18

{
"foo": "bar"
}
15 changes: 15 additions & 0 deletions test/fixtures/output/javascript/fetch/jsonObj-multiline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
fetch("http://mockbin.com/har", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": {
"foo": "bar"
}
})
.then(response => {
console.log(response);
})
.catch(err => {
console.log(err);
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri 'http://mockbin.com/har' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"foo": "bar"
}'

0 comments on commit c780dad

Please sign in to comment.