Skip to content

Commit 0fc590a

Browse files
committed
chore: type errors and linting
1 parent 44736b8 commit 0fc590a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/fetch-mock/src/FetchMock.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,14 @@ export class FetchMock {
165165
const boundFetch = this.config.fetch.bind(globalThis);
166166
if (matcher) {
167167
this.route(
168-
// @ts-expect-error
168+
// @ts-expect-error related to the overloading of .route()
169169
matcher,
170-
// @ts-expect-error
170+
// @ts-expect-error this is just args from a fetch call being passed into a bound fetch - no idea why the error
171171
({ args }) => boundFetch(...args),
172172
name,
173173
);
174174
} else {
175-
// @ts-expect-error
175+
// @ts-expect-error this is just args from a fetch call being passed into a bound fetch - no idea why the error
176176
this.catch(({ args }) => boundFetch(...args));
177177
}
178178

packages/fetch-mock/src/__tests__/FetchMock/mock-and-spy.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe('mock and spy', () => {
140140
fm.spyGlobal();
141141
const isBrowser = Boolean(globalThis.location);
142142
// avoids getting caught by a cors error
143-
const testUrl = isBrowser ? '/' : 'http://a.com/';
143+
const testUrl = isBrowser ? '/' : 'http://example.com/';
144144
await expect(fm.fetchHandler(testUrl)).resolves.toBeInstanceOf(Response);
145145
});
146146
});

0 commit comments

Comments
 (0)