Remove page title

This commit is contained in:
Mikko Koski 2017-03-22 17:25:57 +02:00
parent 74c8f35786
commit 7960802332
2 changed files with 3 additions and 2 deletions

View file

@ -37,7 +37,9 @@ describe('Application', () => {
forEach(urlTitles, (title, url) => {
const context = {};
const body = render(url, context);
expect(body).toMatch(`>${title}</h1>`);
// context.url will contain the URL to redirect to if a <Redirect> was used
expect(context.url).not.toBeDefined();
});
});

View file

@ -49,7 +49,6 @@ class PageLayout extends Component {
</div>
: null}
<Topbar />
<h1>{title}</h1>
{children}
</div>
);