mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-31 02:26:50 +10:00
Enable crawling tests, split redirect tests
This commit is contained in:
parent
f17cccfdfd
commit
8292c1b9cd
1 changed files with 3 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue