Skip to content

Commit

Permalink
chore: fix lint for test codes
Browse files Browse the repository at this point in the history
  • Loading branch information
orionmiz committed Feb 16, 2024
1 parent 73ab558 commit 0081f26
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
20 changes: 13 additions & 7 deletions packages/plantae/src/fetch/createFetch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ describe("createAxiosInterceptors", () => {
http.post(
base("/"),
async ({ request }) =>
new Response((await request.text()) === "modified" ? Status.OK : Status.BAD)
new Response(
(await request.text()) === "modified" ? Status.OK : Status.BAD
)
)
);

Expand Down Expand Up @@ -43,9 +45,11 @@ describe("createAxiosInterceptors", () => {
http.get(
base("/"),
async ({ request }) =>
new Response(request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD)
new Response(
request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD
)
)
);

Expand Down Expand Up @@ -73,9 +77,11 @@ describe("createAxiosInterceptors", () => {
http.get(
base("/"),
async ({ request }) =>
new Response(request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD)
new Response(
request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD
)
)
);

Expand Down
20 changes: 13 additions & 7 deletions packages/plantae/src/ky/createKyHooks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("createkyInterceptors", () => {
http.post(
base("/"),
async ({ request }) =>
new Response((await request.text()) === "modified" ? Status.OK : Status.BAD)
new Response(
(await request.text()) === "modified" ? Status.OK : Status.BAD
)
)
);

Expand Down Expand Up @@ -48,9 +50,11 @@ describe("createkyInterceptors", () => {
http.get(
base("/"),
async ({ request }) =>
new Response(request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD)
new Response(
request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD
)
)
);

Expand Down Expand Up @@ -84,9 +88,11 @@ describe("createkyInterceptors", () => {
http.get(
base("/"),
async ({ request }) =>
new Response(request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD)
new Response(
request.headers.get("x-custom-header") === "modified"
? Status.OK
: Status.BAD
)
)
);

Expand Down

0 comments on commit 0081f26

Please sign in to comment.