File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
functions/utils/createInMemoryService Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { start } from '@js-items/foundation/dist/interfaces/Cursor';
16
16
import FactoryConfig from './FactoryConfig' ;
17
17
18
18
const defaultPromise = ( ) => Promise . resolve ( ) ;
19
-
19
+ /* istanbul ignore next */
20
20
const createInMemoryService = < I extends Item > (
21
21
factoryConfig : FactoryConfig < I >
22
22
) : Facade < I > => ( {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const defaultConfig = {
26
26
prettyParamName : 'pretty' ,
27
27
} ;
28
28
29
+ /* istanbul ignore next */
29
30
export const sendEnvelopedResponse = ( {
30
31
config = defaultConfig ,
31
32
headers,
@@ -49,12 +50,13 @@ export const sendEnvelopedResponse = ({
49
50
if ( req . query [ config . prettyParamName ] === 'false' ) {
50
51
return res . json ( data ) ;
51
52
}
52
-
53
- res . setHeader ( 'Content-Type' , 'application/json' ) ;
53
+
54
+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
54
55
55
56
return res . send ( JSON . stringify ( data , null , 2 ) ) ;
56
57
} ;
57
58
59
+ /* istanbul ignore next */
58
60
export const sendNormalResponse = ( {
59
61
config = defaultConfig ,
60
62
headers,
@@ -82,7 +84,7 @@ export const sendNormalResponse = ({
82
84
return res . json ( body ) ;
83
85
}
84
86
85
- res . setHeader ( 'Content-Type' , 'application/json' ) ;
87
+ res . setHeader ( 'Content-Type' , 'application/json' ) ;
86
88
87
89
return res . send ( JSON . stringify ( body , null , 2 ) ) ;
88
90
} ;
You can’t perform that action at this time.
0 commit comments