mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 16:08:54 +00:00
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:
@@ -9,21 +9,7 @@ beforeAll(async ()=>{
|
|||||||
request = supertest.agent(app).set('X-Forwarded-Proto', 'https');
|
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', ()=>{
|
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 ()=>{
|
it('Test regular CSS file', async ()=>{
|
||||||
const results = await request.get('/fonts/fonts/fonts.css');
|
const results = await request.get('/fonts/fonts/fonts.css');
|
||||||
expect(results.header['content-type']).toBe('text/css; charset=utf-8');
|
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['content-type']).toBe('font/woff2');
|
||||||
expect(results.header['cache-control']).toBe('public, max-age=2592000, must-revalidate');
|
expect(results.header['cache-control']).toBe('public, max-age=2592000, must-revalidate');
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user