From 8292c1b9cd2533f5fe80ab504fb062615d1338f8 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Tue, 14 Feb 2017 14:29:03 +0200 Subject: [PATCH] Enable crawling tests, split redirect tests --- src/app.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app.test.js b/src/app.test.js index 1368dc54..9cdb4bd0 100644 --- a/src/app.test.js +++ b/src/app.test.js @@ -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}`); }); + }); + it('server renders redirects for pages that require authentication', () => { const urlRedirects = { '/orders': '/login', '/sales': '/login',