From 62385adf03199cd07d62354ee215bf5c03282d13 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Mon, 16 Oct 2017 12:44:38 +0300 Subject: [PATCH] app.test.js needed updating --- src/app.test.js | 8 ++++---- src/translations/en.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app.test.js b/src/app.test.js index c267d85c..e2941e9f 100644 --- a/src/app.test.js +++ b/src/app.test.js @@ -34,12 +34,12 @@ describe('Application', () => { it('server renders pages that do not require authentication', () => { const urlTitles = { - '/': 'Book saunas everywhere | Saunatime', - '/s': 'Search results for map search | Saunatime', + '/': 'Book saunas everywhere', + '/s': 'Search results for map search', '/l/listing-title-slug/1234': 'Loading listing…', '/l/1234': 'Loading listing…', '/u/1234': 'Profile page with display name: 1234', - '/login': 'Login', + '/login': 'Log in', '/signup': 'Sign up', '/recover-password': 'Request a new password', '/this-url-should-not-be-found': 'Page not found', @@ -49,7 +49,7 @@ describe('Application', () => { const context = {}; const { head, body } = render(url, context); - expect(head.title).toEqual(title); + expect(head.title).toContain(title); // context.url will contain the URL to redirect to if a was used expect(context.url).not.toBeDefined(); diff --git a/src/translations/en.json b/src/translations/en.json index 90735d86..5d5e954c 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -8,7 +8,7 @@ "AuthenticationPage.resendEmailLinkText": "Resend it", "AuthenticationPage.resendFailed": "Resending verification email failed. Please try again.", "AuthenticationPage.resendFailedTooManyRequests": "Resending verification email failed, since you’ve already been sent 5 verification emails. Please try again tomorrow.", - "AuthenticationPage.schemaTitleSignup": "Sing up | {siteTitle}", + "AuthenticationPage.schemaTitleSignup": "Sign up | {siteTitle}", "AuthenticationPage.schemaTitleLogin": "Log in | {siteTitle}", "AuthenticationPage.sendingEmail": "Sending verification email…", "AuthenticationPage.signupFailed": "Signup failed. Please make sure all the information you entered is correct and try again.",