Skip to content

Commit c780dad

Browse files
test(multiline) add multiline output fixtures
1 parent ebbcb5d commit c780dad

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
POST /har HTTP/1.1
2+
Content-Type: application/json
3+
Host: mockbin.com
4+
Content-Length: 18
5+
6+
{
7+
"foo": "bar"
8+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
fetch("http://mockbin.com/har", {
2+
"method": "POST",
3+
"headers": {
4+
"content-type": "application/json"
5+
},
6+
"body": {
7+
"foo": "bar"
8+
}
9+
})
10+
.then(response => {
11+
console.log(response);
12+
})
13+
.catch(err => {
14+
console.log(err);
15+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$headers=@{}
2+
$headers.Add("content-type", "application/json")
3+
$response = Invoke-RestMethod -Uri 'http://mockbin.com/har' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
4+
"foo": "bar"
5+
}'

0 commit comments

Comments
 (0)