Skip to content

Commit 5bc434f

Browse files
committed
chore: fix test and update editorconfig
1 parent d7338a0 commit 5bc434f

File tree

30 files changed

+45
-33
lines changed

30 files changed

+45
-33
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: 3 additions & 3 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
@@ -54,7 +54,9 @@
5454
"lint:markdown": "markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"",
5555
"build": "tsc --build tsconfig.build.json",
5656
"build:types": "tsc -d --declarationDir dist/lib --declarationMap --emitDeclarationOnly",
57-
"test": "jest"
57+
"test": "jest",
58+
"dev": "tsc --watch --preserveWatchOutput",
59+
"test:watch": "jest --watch"
5860
},
5961
"devDependencies": {
6062
"@types/eslint": "^8.4.1",

src/httpsnippet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export class HTTPSnippet {
315315
return {
316316
...request,
317317
allHeaders,
318-
fullUrl:decodedFullUrl,
318+
fullUrl: decodedFullUrl,
319319
url,
320320
uriObj,
321321
};
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: 1 addition & 1 deletion
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);
33
IRestResponse 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)