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.
This commit is contained in:
1 parent
991655a05f
commit
4825df37a8
1 file changed
+1
-16
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user