Skip to content

Commit 9cd214d

Browse files
committed
chore: remove deprecation warning from husky
1 parent 5541c84 commit 9cd214d

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default defineConfig([
2121
extends: compat.extends(
2222
"eslint:recommended",
2323
"plugin:@typescript-eslint/recommended",
24-
"prettier"
24+
"prettier",
2525
),
2626

2727
plugins: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test:ci": "jest --silent --ci --collectCoverage --reporters=default --reporters=jest-junit",
3434
"lint": "eslint --ext .js,.ts src test --max-warnings=0",
3535
"format": "prettier --write .",
36-
"prepare": "husky install"
36+
"prepare": "husky"
3737
},
3838
"devDependencies": {
3939
"@types/jest": "30.0.0",

test/openapi-typescript/fetch-factory.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ describe("generated fetch from 'createFetch' with no options", () => {
3737
defaultFetch("/store/inventory", { method: "get" });
3838

3939
expect(((global.fetch as jest.Mock).mock.calls[0] as any)[0]).toBe(
40-
"/store/inventory"
40+
"/store/inventory",
4141
);
4242
});
4343

4444
it("calls with no headers as default", () => {
4545
defaultFetch("/store/inventory", { method: "get" });
4646

4747
const headers = Object.entries(
48-
((global.fetch as jest.Mock).mock.calls[0] as any)[1].headers
48+
((global.fetch as jest.Mock).mock.calls[0] as any)[1].headers,
4949
);
5050
expect(headers).toHaveLength(0);
5151
});
@@ -57,7 +57,7 @@ describe("generated fetch from 'createFetch' with no options", () => {
5757
});
5858

5959
const headers = Object.entries(
60-
((global.fetch as jest.Mock).mock.calls[0] as any)[1].headers
60+
((global.fetch as jest.Mock).mock.calls[0] as any)[1].headers,
6161
);
6262
expect(headers).toHaveLength(1);
6363

@@ -77,15 +77,15 @@ describe("generated fetch from 'createFetch' with custom options", () => {
7777
customFetch("/store/inventory", { method: "get" });
7878

7979
expect((mockedFetch.mock.calls[0] as any)[0]).toBe(
80-
"https://petstore3.swagger.io/store/inventory"
80+
"https://petstore3.swagger.io/store/inventory",
8181
);
8282
});
8383

8484
it("uses defaultInit headers", () => {
8585
customFetch("/store/inventory", { method: "get" });
8686

8787
const headers = Object.entries(
88-
(mockedFetch.mock.calls[0] as any)[1].headers
88+
(mockedFetch.mock.calls[0] as any)[1].headers,
8989
);
9090
expect(headers).toHaveLength(1);
9191
expect(headers[0][0]).toBe("Accept");
@@ -181,7 +181,7 @@ describe("Generated fetch request", () => {
181181
});
182182

183183
expect((mockedFetch.mock.calls[0] as any)[0]).toBe(
184-
"https://petstore3.swagger.io/pet/42"
184+
"https://petstore3.swagger.io/pet/42",
185185
);
186186
});
187187

@@ -192,7 +192,7 @@ describe("Generated fetch request", () => {
192192
});
193193

194194
expect((mockedFetch.mock.calls[0] as any)[0]).toBe(
195-
"https://petstore3.swagger.io/pet/findByStatus?status=available"
195+
"https://petstore3.swagger.io/pet/findByStatus?status=available",
196196
);
197197
});
198198

@@ -203,7 +203,7 @@ describe("Generated fetch request", () => {
203203
});
204204

205205
const headers = Object.entries(
206-
(mockedFetch.mock.calls[0] as any)[1].headers
206+
(mockedFetch.mock.calls[0] as any)[1].headers,
207207
);
208208
expect(headers).toHaveLength(2);
209209

@@ -221,7 +221,7 @@ describe("Generated fetch request", () => {
221221
});
222222

223223
const headers = Object.entries(
224-
(mockedFetch.mock.calls[0] as any)[1].headers
224+
(mockedFetch.mock.calls[0] as any)[1].headers,
225225
);
226226
expect(headers).toHaveLength(1);
227227

@@ -235,7 +235,7 @@ describe("Generated fetch request", () => {
235235
customFetch("/store/inventory", { method: "get" });
236236

237237
const headers = Object.entries(
238-
(mockedFetch.mock.calls[0] as any)[1].headers
238+
(mockedFetch.mock.calls[0] as any)[1].headers,
239239
);
240240

241241
expect(headers).toHaveLength(1);
@@ -283,7 +283,7 @@ describe("Generated fetch request", () => {
283283
});
284284

285285
expect((mockedFetch.mock.calls[0] as any)[1].body).toBe(
286-
JSON.stringify(body)
286+
JSON.stringify(body),
287287
);
288288
});
289289

0 commit comments

Comments
 (0)