mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 14:12:40 +00:00
28 lines
658 B
JavaScript
28 lines
658 B
JavaScript
const supertest = require('supertest');
|
|
|
|
// Mimic https responses to avoid being redirected all the time
|
|
const app = supertest.agent(require('app.js').app)
|
|
.set('X-Forwarded-Proto', 'https');
|
|
|
|
describe('Tests for static pages', ()=>{
|
|
it('Home page works', ()=>{
|
|
return app.get('/').expect(200);
|
|
});
|
|
|
|
it('Home page v3 works', ()=>{
|
|
return app.get('/v3_preview').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);
|
|
});
|
|
});
|