diff --git a/tests/helpers/messageHelper.test.js b/tests/helpers/messageHelper.test.js index 9088c46..b0e9488 100644 --- a/tests/helpers/messageHelper.test.js +++ b/tests/helpers/messageHelper.test.js @@ -45,9 +45,10 @@ describe('messageHelper', () => { const membersFor1 = [ {name: "somePerson", proxy: "--text"}, {name: "someSecondPerson", proxy: undefined}, -, {name: "someOtherPerson", proxy: "?text}"}, + {name: "someOtherPerson", proxy: "?text}"}, {name: "someLastPerson", proxy: "{text}"}, {name: "someEmojiPerson", proxy: "⭐text"}, + {name: "someSpacePerson", proxy: "! text"}, ] const membersFor2 = [] @@ -72,9 +73,10 @@ describe('messageHelper', () => { ['1', 'hello', attachmentUrl, {}], ['1', '--hello', attachmentUrl, {member: membersFor1[0], message: 'hello', hasAttachment: true}], ['1', '--', attachmentUrl, {member: membersFor1[0], message: '', hasAttachment: true}], - ['1', '?hello}', null, {member: membersFor1[3], message: 'hello', hasAttachment: false}], - ['1', '{hello}', null, {member: membersFor1[4], message: 'hello', hasAttachment: false}], - ['1', '⭐hello', null, {member: membersFor1[5], message: 'hello', hasAttachment: false}], + ['1', '?hello}', null, {member: membersFor1[2], message: 'hello', hasAttachment: false}], + ['1', '{hello}', null, {member: membersFor1[3], message: 'hello', hasAttachment: false}], + ['1', '⭐hello', null, {member: membersFor1[4], message: 'hello', hasAttachment: false}], + ['1', '! hello', null, {member: membersFor1[5], message: 'hello', hasAttachment: false}], ['2', 'hello', null, undefined], ['2', '--hello', null, undefined], ['2', 'hello', attachmentUrl, undefined],