From 4825df37a89f0191983e704fe7135e324e44ceed Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Mon, 19 Oct 2026 13:43:37 -0400 Subject: [PATCH] Remove comments; brotli tests not needed Vite currently generates no .br files during build. There are not brotli files to test against. Best to add those tests when they become relevant, at which point they will need to be rebuilt anyway. --- tests/routes/static-content.test.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tests/routes/static-content.test.js b/tests/routes/static-content.test.js index 13e6ed44e..3d307ca00 100644 --- a/tests/routes/static-content.test.js +++ b/tests/routes/static-content.test.js @@ -9,21 +9,7 @@ beforeAll(async ()=>{ request = supertest.agent(app).set('X-Forwarded-Proto', 'https'); }); -// Commenting out brotli serving tests until such time as a decision is made about verifying. - describe('Tests for static assets and cache settings', ()=>{ - // it('Test Brotli compressed CSS file', async ()=>{ - // const results = await request.get('/fonts/fonts/fonts.css.br'); - // expect(results.header['content-type']).toBe('application/octet-stream'); - // expect(results.header['cache-control']).toBe('public, max-age: 43200, must-revalidate'); - // }); - - // it('Test Brotli encrypted font file', async ()=>{ - // const results = await request.get('/fonts/fonts/open-sans-latin-400-normal.woff2.br'); - // expect(results.header['content-type']).toBe('application/octet-stream'); - // expect(results.header['cache-control']).toBe('public, max-age=2592000, must-revalidate'); - // }); - it('Test regular CSS file', async ()=>{ const results = await request.get('/fonts/fonts/fonts.css'); expect(results.header['content-type']).toBe('text/css; charset=utf-8'); @@ -35,5 +21,4 @@ describe('Tests for static assets and cache settings', ()=>{ expect(results.header['content-type']).toBe('font/woff2'); expect(results.header['cache-control']).toBe('public, max-age=2592000, must-revalidate'); }); - -}); \ No newline at end of file +});