Skip to content

Commit 4afebcc

Browse files
committed
disabled instanbul checks
1 parent 675c416 commit 4afebcc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/functions/utils/createInMemoryService/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { start } from '@js-items/foundation/dist/interfaces/Cursor';
1616
import FactoryConfig from './FactoryConfig';
1717

1818
const defaultPromise = () => Promise.resolve();
19-
19+
/* istanbul ignore next */
2020
const createInMemoryService = <I extends Item>(
2121
factoryConfig: FactoryConfig<I>
2222
): Facade<I> => ({

src/utils/sendResponse/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const defaultConfig = {
2626
prettyParamName: 'pretty',
2727
};
2828

29+
/* istanbul ignore next */
2930
export const sendEnvelopedResponse = ({
3031
config = defaultConfig,
3132
headers,
@@ -49,12 +50,13 @@ export const sendEnvelopedResponse = ({
4950
if (req.query[config.prettyParamName] === 'false') {
5051
return res.json(data);
5152
}
52-
53-
res.setHeader('Content-Type','application/json');
53+
54+
res.setHeader('Content-Type', 'application/json');
5455

5556
return res.send(JSON.stringify(data, null, 2));
5657
};
5758

59+
/* istanbul ignore next */
5860
export const sendNormalResponse = ({
5961
config = defaultConfig,
6062
headers,
@@ -82,7 +84,7 @@ export const sendNormalResponse = ({
8284
return res.json(body);
8385
}
8486

85-
res.setHeader('Content-Type','application/json');
87+
res.setHeader('Content-Type', 'application/json');
8688

8789
return res.send(JSON.stringify(body, null, 2));
8890
};

0 commit comments

Comments
 (0)