@@ -144,17 +144,17 @@ describe("Test /api/", () => {
144144
145145 expect ( res . setHeader . mock . calls ) . toEqual ( [
146146 [ "Content-Type" , "image/svg+xml" ] ,
147- [ "Cache-Control" , `public, max-age=${ CONSTANTS . TWO_HOURS } ` ] ,
147+ [ "Cache-Control" , `public, max-age=${ CONSTANTS . FOUR_HOURS } ` ] ,
148148 ] ) ;
149149 } ) ;
150150
151151 it ( "should set proper cache" , async ( ) => {
152- const { req, res } = faker ( { cache_seconds : 8000 } , data ) ;
152+ const { req, res } = faker ( { cache_seconds : 15000 } , data ) ;
153153 await api ( req , res ) ;
154154
155155 expect ( res . setHeader . mock . calls ) . toEqual ( [
156156 [ "Content-Type" , "image/svg+xml" ] ,
157- [ "Cache-Control" , `public, max-age=${ 8000 } ` ] ,
157+ [ "Cache-Control" , `public, max-age=${ 15000 } ` ] ,
158158 ] ) ;
159159 } ) ;
160160
@@ -176,7 +176,7 @@ describe("Test /api/", () => {
176176
177177 expect ( res . setHeader . mock . calls ) . toEqual ( [
178178 [ "Content-Type" , "image/svg+xml" ] ,
179- [ "Cache-Control" , `public, max-age=${ CONSTANTS . TWO_HOURS } ` ] ,
179+ [ "Cache-Control" , `public, max-age=${ CONSTANTS . FOUR_HOURS } ` ] ,
180180 ] ) ;
181181 }
182182
@@ -186,7 +186,7 @@ describe("Test /api/", () => {
186186
187187 expect ( res . setHeader . mock . calls ) . toEqual ( [
188188 [ "Content-Type" , "image/svg+xml" ] ,
189- [ "Cache-Control" , `public, max-age=${ CONSTANTS . TWO_HOURS } ` ] ,
189+ [ "Cache-Control" , `public, max-age=${ CONSTANTS . FOUR_HOURS } ` ] ,
190190 ] ) ;
191191 }
192192 } ) ;
0 commit comments