Skip to content

Commit 8497b5b

Browse files
committed
chore: fix test and update editorconfig
1 parent cebda7f commit 8497b5b

File tree

29 files changed

+36
-34
lines changed

29 files changed

+36
-34
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ indent_style = space
66
indent_size = 2
77
end_of_line = lf
88
charset = utf-8
9-
trim_trailing_whitespace = true
10-
insert_final_newline = true
9+
trim_trailing_whitespace = false
10+
insert_final_newline = false
1111

1212
[targets/**/fixtures/*]
1313
insert_final_newline = false

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
"lint:markdown:fix": "markdownlint-cli2-fix \"**/*.md\" \"#**/node_modules\"",
6161
"build": "tsc --build tsconfig.build.json",
6262
"build:types": "tsc -d --declarationDir dist/lib --declarationMap --emitDeclarationOnly",
63-
"test": "jest"
63+
"test": "jest",
64+
"dev": "tsc --watch --preserveWatchOutput",
65+
"test:watch": "jest --watch"
6466
},
6567
"devDependencies": {
6668
"@types/eslint": "^8.4.1",

src/httpsnippet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class HTTPSnippet {
317317
return {
318318
...request,
319319
allHeaders,
320-
fullUrl:decodedFullUrl,
320+
fullUrl: decodedFullUrl,
321321
url,
322322
uriObj,
323323
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CURL *hnd = curl_easy_init();
22

33
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
4-
curl_easy_setopt(hnd, CURLOPT_URL, "http://mockbin.com/har?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value");
4+
curl_easy_setopt(hnd, CURLOPT_URL, "http://mockbin.com/har?foo[bar]=baz,zap&fiz=buz&key=value");
55

66
CURLcode ret = curl_easy_perform(hnd);

src/targets/csharp/httpclient/fixtures/nested.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var request = new HttpRequestMessage
44
{
55
Method = HttpMethod.Get,
6-
RequestUri = new Uri("http://mockbin.com/har?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value"),
6+
RequestUri = new Uri("http://mockbin.com/har?foo[bar]=baz,zap&fiz=buz&key=value"),
77
};
88
using (var response = await client.SendAsync(request))
99
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
var client = new RestClient("http://mockbin.com/har?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value");
1+
var client = new RestClient("http://mockbin.com/har?foo[bar]=baz,zap&fiz=buz&key=value");
22
var request = new RestRequest("", Method.Get);
3-
var response = client.Execute(request);
3+
var response = client.Execute(request);

src/targets/go/native/fixtures/nested.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
func main() {
1010

11-
url := "http://mockbin.com/har?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value"
11+
url := "http://mockbin.com/har?foo[bar]=baz,zap&fiz=buz&key=value"
1212

1313
req, _ := http.NewRequest("GET", url, nil)
1414

src/targets/java/asynchttp/fixtures/nested.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AsyncHttpClient client = new DefaultAsyncHttpClient();
2-
client.prepare("GET", "http://mockbin.com/har?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value")
2+
client.prepare("GET", "http://mockbin.com/har?foo[bar]=baz,zap&fiz=buz&key=value")
33
.execute()
44
.toCompletableFuture()
55
.thenAccept(System.out::println)

src/targets/java/nethttp/fixtures/nested.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
HttpRequest request = HttpRequest.newBuilder()
2-
.uri(URI.create("http://mockbin.com/har?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value"))
2+
.uri(URI.create("http://mockbin.com/har?foo[bar]=baz,zap&fiz=buz&key=value"))
33
.method("GET", HttpRequest.BodyPublishers.noBody())
44
.build();
55
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());

0 commit comments

Comments
 (0)