@@ -11,11 +11,11 @@ describe("Pages routes", () => {
1111 } ) ;
1212
1313 describe ( "/docs" , ( ) => {
14- it ( "should return 200 " , async ( ) => {
14+ it ( "should return 301 " , async ( ) => {
1515 await request ( app )
1616 . get ( "/docs" )
1717 . expect ( "Content-Type" , / h t m l / )
18- . expect ( 200 ) ;
18+ . expect ( 301 ) ;
1919 } ) ;
2020 } ) ;
2121} ) ;
@@ -31,11 +31,6 @@ describe("Errors", () => {
3131 } ) ;
3232} ) ;
3333
34- describe ( "Misc" , ( ) => {
35- it ( "should return a favicon" , async ( ) => {
36- await request ( app ) . get ( "/favicon.ico" ) . expect ( 200 ) ;
37- } ) ;
38- } ) ;
3934
4035describe ( "Utils" , ( ) => {
4136 describe ( "Health" , ( ) => {
@@ -58,21 +53,6 @@ describe("Utils", () => {
5853 } ) ;
5954} ) ;
6055
61- describe ( "Serve static assets" , ( ) => {
62- it ( "serves public/ when enabled" , async ( ) => {
63- const config = configFactory ( ) ;
64- config . serveStaticAssets = true ;
65- const newApp = postcodesioApplication ( config ) ;
66- await request ( newApp ) . get ( "/js/app.js" ) . expect ( 200 ) ;
67- } ) ;
68- it ( "does not serve public/ when disabled" , async ( ) => {
69- const config = configFactory ( ) ;
70- config . serveStaticAssets = false ;
71- const newApp = postcodesioApplication ( config ) ;
72- const response = await request ( newApp ) . get ( "/js/app.ts" ) . expect ( 404 ) ;
73- } ) ;
74- } ) ;
75-
7656describe ( "httpHeaders" , ( ) => {
7757 it ( "sets arbitrary headers on all HTTP responses" , async ( ) => {
7858 const config = configFactory ( ) ;
0 commit comments