From ec1a834b204e4cf1712c906caf20a20dda490876 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Thu, 30 Nov 2017 11:07:29 +0200 Subject: [PATCH] Update title test with message IDs in translations --- src/app.test.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app.test.js b/src/app.test.js index 827e72f1..728d5ca8 100644 --- a/src/app.test.js +++ b/src/app.test.js @@ -34,16 +34,16 @@ describe('Application', () => { it('server renders pages that do not require authentication', () => { const urlTitles = { - '/': 'Book saunas everywhere', - '/s': 'Search results for map search', - '/l/listing-title-slug/1234': 'Loading listing…', - '/l/1234': 'Loading listing…', - '/u/1234': ' | Saunatime', - '/login': 'Log in', - '/signup': 'Sign up', - '/recover-password': 'Request a new password', - '/this-url-should-not-be-found': 'Page not found', - '/reset-password?t=token&e=email': 'Reset password', + '/': 'LandingPage.schemaTitle', + '/s': 'SearchPage.schemaTitle', + '/l/listing-title-slug/1234': 'ListingPage.loadingListingTitle', + '/l/1234': 'ListingPage.loadingListingTitle', + '/u/1234': 'ProfilePage.schemaTitle', + '/login': 'AuthenticationPage.schemaTitleLogin', + '/signup': 'AuthenticationPage.schemaTitleSignup', + '/recover-password': 'PasswordRecoveryPage.title', + '/this-url-should-not-be-found': 'NotFoundPage.title', + '/reset-password?t=token&e=email': 'PasswordResetPage.title', }; forEach(urlTitles, (title, url) => { const context = {};