mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 20:42:43 +00:00
28 lines
664 B
JavaScript
28 lines
664 B
JavaScript
import supertest from 'supertest';
|
|
import HBApp from 'app.js';
|
|
|
|
// Mimic https responses to avoid being redirected all the time
|
|
const app = supertest.agent(HBApp).set('X-Forwarded-Proto', 'https');
|
|
|
|
describe('Tests for static pages', ()=>{
|
|
it('Home page works', ()=>{
|
|
return app.get('/').expect(200);
|
|
});
|
|
|
|
it('Home page legacy works', ()=>{
|
|
return app.get('/legacy').expect(200);
|
|
});
|
|
|
|
it('Changelog page works', ()=>{
|
|
return app.get('/changelog').expect(200);
|
|
});
|
|
|
|
it('FAQ page works', ()=>{
|
|
return app.get('/faq').expect(200);
|
|
});
|
|
|
|
it('robots.txt works', ()=>{
|
|
return app.get('/robots.txt').expect(200);
|
|
});
|
|
});
|