Skip to content

Commit ce1f4e0

Browse files
author
Aiden
committed
post review change
1 parent 34b0356 commit ce1f4e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'jsdom',
4-
verbose: true,
54
};

src/mocks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ function handleRestMock({
172172
status: responseCode,
173173
headers: responseHeaders,
174174
};
175+
175176
switch (method) {
176177
case 'GET':
177178
fetchMock.get(url, () => addDelay(delay).then(() => finalResponse), {
@@ -210,7 +211,8 @@ function handleRestMock({
210211
}
211212
}
212213

213-
/** const graphQLMocks = mocks.filter(ethod for a GraphQL mock.
214+
/**
215+
* Mocks the right HTTP method for a GraphQL mock.
214216
*/
215217
function handleGraphQLMock({ url, operations }: GraphQLMock) {
216218
const graphQLErrorResponse = { errors: [] };

0 commit comments

Comments
 (0)