From b27319313dccf4e0564f4801178a19b8c175f715 Mon Sep 17 00:00:00 2001 From: Brian Murray Date: Tue, 15 Aug 2017 16:02:49 -0700 Subject: [PATCH] Fix spelling of received. (#8937) --- .../spec/controllers/notificationCtrlSpec.js | 20 +++++++++---------- website/common/locales/en/generic.json | 4 ++-- website/server/controllers/api-v3/groups.js | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/client-old/spec/controllers/notificationCtrlSpec.js b/test/client-old/spec/controllers/notificationCtrlSpec.js index a47acfbddb..f816bd89f6 100644 --- a/test/client-old/spec/controllers/notificationCtrlSpec.js +++ b/test/client-old/spec/controllers/notificationCtrlSpec.js @@ -100,7 +100,7 @@ describe('Notification Controller', function() { }); describe('User challenge won notification watch', function() { - it('opens challenge won modal when a challenge-won notification is recieved', function() { + it('opens challenge won modal when a challenge-won notification is received', function() { rootScope.$digest(); rootScope.userNotifications.push({type: 'WON_CHALLENGE'}); rootScope.$digest(); @@ -109,7 +109,7 @@ describe('Notification Controller', function() { expect(achievement.displayAchievement).to.be.calledWith('wonChallenge'); }); - it('does not open challenge won modal if no new challenge-won notification is recieved', function() { + it('does not open challenge won modal if no new challenge-won notification is received', function() { rootScope.$digest(); rootScope.$digest(); @@ -118,7 +118,7 @@ describe('Notification Controller', function() { }); describe('User streak achievement notification watch', function() { - it('opens streak achievement modal when a streak-achievement notification is recieved', function() { + it('opens streak achievement modal when a streak-achievement notification is received', function() { rootScope.$digest(); rootScope.userNotifications.push({type: 'STREAK_ACHIEVEMENT'}); rootScope.$digest(); @@ -127,7 +127,7 @@ describe('Notification Controller', function() { expect(achievement.displayAchievement).to.be.calledWith('streak', {size: 'md'}); }); - it('does not open streak achievement modal if no new streak-achievement notification is recieved', function() { + it('does not open streak achievement modal if no new streak-achievement notification is received', function() { rootScope.$digest(); rootScope.$digest(); @@ -136,7 +136,7 @@ describe('Notification Controller', function() { }); describe('User ultimate gear set achievement notification watch', function() { - it('opens ultimate gear set achievement modal when an ultimate-gear-achievement notification is recieved', function() { + it('opens ultimate gear set achievement modal when an ultimate-gear-achievement notification is received', function() { rootScope.$digest(); rootScope.userNotifications.push({type: 'ULTIMATE_GEAR_ACHIEVEMENT'}); rootScope.$digest(); @@ -145,7 +145,7 @@ describe('Notification Controller', function() { expect(achievement.displayAchievement).to.be.calledWith('ultimateGear', {size: 'md'}); }); - it('does not open ultimate gear set achievement modal if no new ultimate-gear-achievement notification is recieved', function() { + it('does not open ultimate gear set achievement modal if no new ultimate-gear-achievement notification is received', function() { rootScope.$digest(); rootScope.$digest(); @@ -154,7 +154,7 @@ describe('Notification Controller', function() { }); describe('User rebirth achievement notification watch', function() { - it('opens rebirth achievement modal when a rebirth-achievement notification is recieved', function() { + it('opens rebirth achievement modal when a rebirth-achievement notification is received', function() { rootScope.$digest(); rootScope.userNotifications.push({type: 'REBIRTH_ACHIEVEMENT'}); rootScope.$digest(); @@ -163,7 +163,7 @@ describe('Notification Controller', function() { expect(achievement.displayAchievement).to.be.calledWith('rebirth'); }); - it('does not open rebirth achievement modal if no new rebirth-achievement notification is recieved', function() { + it('does not open rebirth achievement modal if no new rebirth-achievement notification is received', function() { rootScope.$digest(); rootScope.$digest(); @@ -172,7 +172,7 @@ describe('Notification Controller', function() { }); describe('User contributor achievement notification watch', function() { - it('opens contributor achievement modal when a new-contributor-level notification is recieved', function() { + it('opens contributor achievement modal when a new-contributor-level notification is received', function() { rootScope.$digest(); rootScope.userNotifications.push({type: 'NEW_CONTRIBUTOR_LEVEL'}); rootScope.$digest(); @@ -181,7 +181,7 @@ describe('Notification Controller', function() { expect(achievement.displayAchievement).to.be.calledWith('contributor', {size: 'md'}); }); - it('does not open contributor achievement modal if no new new-contributor-level notification is recieved', function() { + it('does not open contributor achievement modal if no new new-contributor-level notification is received', function() { rootScope.$digest(); rootScope.$digest(); diff --git a/website/common/locales/en/generic.json b/website/common/locales/en/generic.json index fb687d0784..1faff8b5e6 100644 --- a/website/common/locales/en/generic.json +++ b/website/common/locales/en/generic.json @@ -184,7 +184,7 @@ "birthdayCardAchievementTitle": "Birthday Bonanza", "birthdayCardAchievementText": "Many happy returns! Sent or received <%= count %> birthday cards.", "congratsCard": "Congratulations Card", - "congratsCardExplanation": "You both recieve the Congratulatory Companion achievement!", + "congratsCardExplanation": "You both receive the Congratulatory Companion achievement!", "congratsCardNotes": "Send a Congratulations card to a party member.", "congrats0": "Congratulations on your success!", "congrats1": "I'm so proud of you!", @@ -194,7 +194,7 @@ "congratsCardAchievementTitle": "Congratulatory Companion", "congratsCardAchievementText": "It's great to celebrate your friends' achievements! Sent or received <%= count %> congratulations cards.", "getwellCard": "Get Well Card", - "getwellCardExplanation": "You both recieve the Caring Confidant achievement!", + "getwellCardExplanation": "You both receive the Caring Confidant achievement!", "getwellCardNotes": "Send a Get Well card to a party member.", "getwell0": "Hope you feel better soon!", "getwell1": "Take care! <3", diff --git a/website/server/controllers/api-v3/groups.js b/website/server/controllers/api-v3/groups.js index c3aaeb5858..5605218a04 100644 --- a/website/server/controllers/api-v3/groups.js +++ b/website/server/controllers/api-v3/groups.js @@ -1055,8 +1055,8 @@ async function _inviteByEmail (invite, group, inviter, req, res) { * } * * @apiSuccess {Array} data The invites - * @apiSuccess {Object} data[0] If the invitation was a user id, you'll receive back an object. You'll recieve one Object for each succesful user id invite. - * @apiSuccess {String} data[1] If the invitation was an email, you'll receive back the email. You'll recieve one String for each successful email invite. + * @apiSuccess {Object} data[0] If the invitation was a user id, you'll receive back an object. You'll receive one Object for each succesful user id invite. + * @apiSuccess {String} data[1] If the invitation was an email, you'll receive back the email. You'll receive one String for each successful email invite. * * @apiSuccessExample {json} Successful Response with Emails * {