File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11var _ = require ( 'lodash' ) ,
2- utils = require ( '../../utils' ) ,
2+ utils = require ( '../../../ utils' ) ,
33 sitemap = require ( './index' ) ;
44
55// Responsible for handling requests for sitemap files
Original file line number Diff line number Diff line change @@ -1048,20 +1048,23 @@ describe('Frontend Routing', function () {
10481048 it ( 'should serve sitemap.xml' , function ( done ) {
10491049 request . get ( '/sitemap.xml' )
10501050 . expect ( 200 )
1051+ . expect ( 'Cache-Control' , testUtils . cacheRules . hour )
10511052 . expect ( 'Content-Type' , 'text/xml; charset=utf-8' )
10521053 . end ( doEnd ( done ) ) ;
10531054 } ) ;
10541055
10551056 it ( 'should serve sitemap-posts.xml' , function ( done ) {
10561057 request . get ( '/sitemap-posts.xml' )
10571058 . expect ( 200 )
1059+ . expect ( 'Cache-Control' , testUtils . cacheRules . hour )
10581060 . expect ( 'Content-Type' , 'text/xml; charset=utf-8' )
10591061 . end ( doEnd ( done ) ) ;
10601062 } ) ;
10611063
10621064 it ( 'should serve sitemap-pages.xml' , function ( done ) {
10631065 request . get ( '/sitemap-posts.xml' )
10641066 . expect ( 200 )
1067+ . expect ( 'Cache-Control' , testUtils . cacheRules . hour )
10651068 . expect ( 'Content-Type' , 'text/xml; charset=utf-8' )
10661069 . end ( doEnd ( done ) ) ;
10671070 } ) ;
You can’t perform that action at this time.
0 commit comments