Enable crawling tests, split redirect tests

This commit is contained in:
Kimmo Puputti 2017-02-14 14:29:03 +02:00
parent f17cccfdfd
commit 8292c1b9cd

View file

@ -21,8 +21,7 @@ describe('Application', () => {
render('/', {});
});
// TODO: enable this test when routing works
xit('renders correct routes in the server', () => {
it('server renders pages that do not require authentication', () => {
const urlTitles = {
'/': 'Landing page',
'/s': 'Search page',
@ -40,7 +39,9 @@ describe('Application', () => {
const body = render(url, context);
expect(body).toMatch(`>${title}</h1>`);
});
});
it('server renders redirects for pages that require authentication', () => {
const urlRedirects = {
'/orders': '/login',
'/sales': '/login',