forked from PluralFlux/PluralFlux
update message helper test to include space case
This commit is contained in:
@@ -45,9 +45,10 @@ describe('messageHelper', () => {
|
|||||||
const membersFor1 = [
|
const membersFor1 = [
|
||||||
{name: "somePerson", proxy: "--text"},
|
{name: "somePerson", proxy: "--text"},
|
||||||
{name: "someSecondPerson", proxy: undefined},
|
{name: "someSecondPerson", proxy: undefined},
|
||||||
, {name: "someOtherPerson", proxy: "?text}"},
|
{name: "someOtherPerson", proxy: "?text}"},
|
||||||
{name: "someLastPerson", proxy: "{text}"},
|
{name: "someLastPerson", proxy: "{text}"},
|
||||||
{name: "someEmojiPerson", proxy: "⭐text"},
|
{name: "someEmojiPerson", proxy: "⭐text"},
|
||||||
|
{name: "someSpacePerson", proxy: "! text"},
|
||||||
]
|
]
|
||||||
|
|
||||||
const membersFor2 = []
|
const membersFor2 = []
|
||||||
@@ -72,9 +73,10 @@ describe('messageHelper', () => {
|
|||||||
['1', 'hello', attachmentUrl, {}],
|
['1', 'hello', attachmentUrl, {}],
|
||||||
['1', '--hello', attachmentUrl, {member: membersFor1[0], message: 'hello', hasAttachment: true}],
|
['1', '--hello', attachmentUrl, {member: membersFor1[0], message: 'hello', hasAttachment: true}],
|
||||||
['1', '--', attachmentUrl, {member: membersFor1[0], message: '', 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[2], message: 'hello', hasAttachment: false}],
|
||||||
['1', '{hello}', null, {member: membersFor1[4], message: 'hello', hasAttachment: false}],
|
['1', '{hello}', null, {member: membersFor1[3], message: 'hello', hasAttachment: false}],
|
||||||
['1', '⭐hello', null, {member: membersFor1[5], 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', null, undefined],
|
['2', '--hello', null, undefined],
|
||||||
['2', 'hello', attachmentUrl, undefined],
|
['2', 'hello', attachmentUrl, undefined],
|
||||||
|
|||||||
Reference in New Issue
Block a user